tuweni / org.apache.tuweni.concurrent / AsyncResult / then

then

abstract fun <U : Any!> then(fn: Function<in T, out AsyncResult<U>!>!): AsyncResult<U>! (source)

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

Parameters

fn - Function<in T, out AsyncResult<U>!>!: The function returning a new result.

- The type of the returned result's value.

Return
AsyncResult<U>!: A new result.