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

combine

open static fun <T : Any> combine(rs: MutableCollection<out AsyncResult<out T>>): AsyncResult<MutableList<T>> (source)
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 - The results to combine.

Return
A new result.