tuweni / org.apache.tuweni.concurrent / AsyncCompletion / thenApply


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

Returns a result that, when this completion and the other result both complete normally, completes with the value obtained from executing the supplied function with the value from the other result as an argument.


other - AsyncResult<out U>!: The other result.

fn - Function<in U, out V>!: The function to execute.

- The type of the other's value.

- The type of the value returned by the function.

AsyncResult<V>!: A new result.