concurrent / org.apache.tuweni.concurrent / AsyncResult / thenCompose

thenCompose

abstract fun thenCompose(fn: Function<in T, out AsyncCompletion>): AsyncCompletion (source)

When this result completes normally, invokes the given function with the resulting value and obtains a new AsyncCompletion.

Parameters

fn - The function returning a new completion.

Return
A completion.