tuweni / org.apache.tuweni.concurrent / AsyncResult / thenSchedule

thenSchedule

abstract fun <U : Any> thenSchedule(vertx: Vertx, 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 completion returned after executing the given function on the vertx context with this results value as an argument.

Parameters

vertx - The vertx context.

fn - The function returning a new result.

- The type of the returned result's value.

Return
A new result.