FutureRecord2<T1, T2> extension

Parallel operations on a record of futures.

Waits for futures in parallel.

Waits for all the futures in this record. Returns a record of the values, if all futures are successful.

The returned future is completed when all the futures have completed. If any of the futures do not complete, nor does the returned future.

If some futures complete with an error, the returned future completes with a ParallelWaitError. The ParallelWaitError.values is a record of the values of successful futures, and null for futures with errors. The ParallelWaitError.errors is a record of the same shape, with null values for the successful futures and an AsyncError with the error of futures which completed with an error.

on
Annotations
  • @Since("3.0")

Properties

wait Future<(T1, T2)>

Available on (Future<T1>, Future<T2>), provided by the FutureRecord2 extension

Waits for futures in parallel.
no setter