tuweni / 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 - Function<in T, out AsyncCompletion!>!: The function returning a new completion.

Return
AsyncCompletion!: A completion.