Sha256: e4c1207a7a19a50d25d6e0b65d23b6516ad0952214c8fa8669af9d8eecdaf394

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

module Houston
  
  def self.async
    Thread.new do
      begin
        yield
      rescue Exception # rescues StandardError by default; but we want to rescue and report all errors
        Houston.report_exception($!)
      end
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 config/initializers/houston_async.rb