Method: Concurrent::Promises::Future#any
- Defined in:
- lib/concurrent-ruby/concurrent/promises.rb
#any(event_or_future) ⇒ Future Also known as: |
Creates a new event which will be resolved when the first of receiver, event_or_future resolves. Returning future will have value nil if event_or_future is event and resolves first.
1085 1086 1087 |
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 1085 def any(event_or_future) AnyResolvedFuturePromise.new_blocked_by2(self, event_or_future, @DefaultExecutor).future end |