tuweni / org.apache.tuweni.concurrent / AsyncResult / 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.


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.

AsyncCompletion!: A completion.