tuweni / org.apache.tuweni.concurrent / AsyncResult / thenAccept

thenAccept

abstract fun thenAccept(consumer: Consumer<in T>): AsyncCompletion (source)

Returns a completion that, when this result completes normally, completes after executing the supplied consumer with this result's value as an argument.

Parameters

consumer - The consumer for the value of this result.

Return
A completion.