concurrent / 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 - The function returning a new completion.

Return
A completion.