tuweni / org.apache.tuweni.concurrent / AsyncCompletion / then

then

abstract fun <U : Any> then(fn: Supplier<out AsyncResult<U>>): AsyncResult<U> (source)

Returns a new completion that, when this completion completes normally, completes with the same value or exception as the result returned after executing the given function.

Parameters

fn - The function returning a new result.

- The type of the returned result's value.

Return
A new result.