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 - Vertx!: The vertx context.

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.