Module: EMDextras::Chains::Deferrables
- Defined in:
- lib/em-dextras/chains.rb
Class Method Summary collapse
Class Method Details
.failed(*args) ⇒ Object
72 73 74 75 76 |
# File 'lib/em-dextras/chains.rb', line 72 def self.failed(*args) deferrable = EventMachine::DefaultDeferrable.new deferrable.fail(*args) deferrable end |
.succeeded(*args) ⇒ Object
68 69 70 71 |
# File 'lib/em-dextras/chains.rb', line 68 def self.succeeded(*args) deferrable = EventMachine::DefaultDeferrable.new deferrable.succeed(*args) deferrable end |