tuweni / org.apache.tuweni.concurrent / AsyncResult / combine

combine

open static fun <T : Any!> combine(rs: MutableCollection<out AsyncResult<out T>!>!): AsyncResult<MutableList<T>!>! (source)

Returns a result that completes when all of the given results complete. If any results complete exceptionally, then the resulting completion also completes exceptionally.

Parameters

- The type of the values that this result will complete with.

rs - MutableCollection<out AsyncResult<out T>!>!: The results to combine.

Return
AsyncResult<MutableList<T>!>!: A new result.

open static fun <T : Any!> combine(rs: Stream<out AsyncResult<out T>!>!): AsyncResult<MutableList<T>!>! (source)

Returns a result that completes when all of the given results complete. If any results complete exceptionally, then the resulting completion also completes exceptionally.

Parameters

- The type of the values that this result will complete with.

rs - Stream<out AsyncResult<out T>!>!: The results to combine.

Return
AsyncResult<MutableList<T>!>!: A new result.