tuweni / org.apache.tuweni.concurrent / AsyncResult / thenAcceptBoth

thenAcceptBoth

abstract fun <U : Any!> thenAcceptBoth(other: AsyncResult<out U>!, consumer: BiConsumer<in T, in U>!): AsyncCompletion! (source)

Returns a completion that, when this result and the other result both complete normally, completes after executing the supplied consumer with both this result's value and the value from the other result as arguments.

Parameters

other - AsyncResult<out U>!: The other result.

consumer - BiConsumer<in T, in U>!: The consumer for both values.

- The type of the other's value.

Return
AsyncCompletion!: A completion.