tuweni / org.apache.tuweni.concurrent / AsyncCompletion / thenCompose

thenCompose

abstract fun thenCompose(fn: Supplier<out AsyncCompletion!>!): AsyncCompletion! (source)

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

Parameters

fn - Supplier<out AsyncCompletion!>!: The function returning a new completion.

Return
AsyncCompletion!: A completion.