tuweni / org.apache.tuweni.concurrent / AsyncResult / thenApply

thenApply

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

Returns a result that, when this result completes normally, completes with the value obtained from executing the supplied function with this result's value as an argument.

Parameters

fn - Function<in T, out U>!: The function to use to compute the value of the returned result.

- The function's return type.

Return
AsyncResult<U>!: A new result.