Method: Concurrent::Promises::FactoryMethods#zip_futures_on

Defined in:
lib/concurrent-ruby/concurrent/promises.rb

#zip_futures_on(default_executor, *futures_and_or_events) ⇒ Future

Creates a new future which is resolved after all futures_and_or_events are resolved. Its value is an array of zipped future values. Its reason is an array of reasons for rejection. If there is an error it rejects. If event is supplied, which does not have value and can be only resolved, it’s represented as ‘:fulfilled` with value `nil`.

Parameters:

Returns:



254
255
256
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 254

def zip_futures_on(default_executor, *futures_and_or_events)
  ZipFuturesPromise.new_blocked_by(futures_and_or_events, default_executor).future
end