class DeferrableGratification::Combinators::Join::FirstSuccess
Combinator that waits for any of the supplied asynchronous operations to succeed, and succeeds with the result of the first (chronologically) to do so.
This Deferrable will fail if all the operations fail. It may never succeed or fail, if one of the operations also does not.
You probably want to call {ClassMethods#join_first_success} rather than using this class directly.
Private Instance Methods
done?()
click to toggle source
# File lib/deferrable_gratification/combinators/join.rb, line 88 def done? successes.length > 0 end
finish()
click to toggle source
# File lib/deferrable_gratification/combinators/join.rb, line 92 def finish succeed(successes.first) end