concurrent / org.apache.tuweni.concurrent / AsyncResult / thenScheduleApply

thenScheduleApply

abstract fun <U : Any> thenScheduleApply(vertx: Vertx, 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 on the vertx context with this result's value as an argument.

Parameters

vertx - The vertx context.

fn - The function to use to compute the value of the returned result.

- The function's return type.

Return
A new result.