@@ -383,7 +383,14 @@ def flat_map(&block)
383
383
# Builds a promise that produces the result of promises in an Array
384
384
# and fails if any of them fails.
385
385
#
386
- # @param [Array<Promise>] promises
386
+ # @overload zip(*promises)
387
+ # @param [Array<Promise>] promises
388
+ #
389
+ # @overload zip(*promises, opts)
390
+ # @param [Array<Promise>] promises
391
+ # @param [Hash] opts the configuration options
392
+ # @option opts [Executor] :executor (ImmediateExecutor.new) when set use the given `Executor` instance.
393
+ # @option opts [Boolean] :execute (true) execute promise before returning
387
394
#
388
395
# @return [Promise<Array>]
389
396
def self . zip ( *promises )
@@ -407,7 +414,14 @@ def self.zip(*promises)
407
414
# Builds a promise that produces the result of self and others in an Array
408
415
# and fails if any of them fails.
409
416
#
410
- # @param [Array<Promise>] others
417
+ # @overload zip(*promises)
418
+ # @param [Array<Promise>] others
419
+ #
420
+ # @overload zip(*promises, opts)
421
+ # @param [Array<Promise>] others
422
+ # @param [Hash] opts the configuration options
423
+ # @option opts [Executor] :executor (ImmediateExecutor.new) when set use the given `Executor` instance.
424
+ # @option opts [Boolean] :execute (true) execute promise before returning
411
425
#
412
426
# @return [Promise<Array>]
413
427
def zip ( *others )
0 commit comments