Sha256: 70b0769fca2260a4c00cef5cfa98234d61409faff6f2fc1d56154d4cef00f7b5
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
class RestCore::Timeout::EventMachineTimer < ::EventMachine::Timer attr_accessor :timeout, :error def initialize timeout, error, &block super(timeout, &block) if block_given? self.timeout = timeout self.error = error end def on_timeout &block send(:initialize, timeout, error, &block) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-core-1.0.1 | lib/rest-core/middleware/timeout/eventmachine_timer.rb |
rest-core-1.0.0 | lib/rest-core/middleware/timeout/eventmachine_timer.rb |