tuweni / org.apache.tuweni.concurrent / AsyncCompletion / thenSchedule


abstract fun <U : Any!> thenSchedule(vertx: Vertx!, fn: Supplier<out AsyncResult<U>!>!): AsyncResult<U>! (source)

Returns a new result that, when this completion completes normally, completes with the same value or exception as the completion returned after executing the given function on the vertx context.


vertx - Vertx!: The vertx context.

fn - Supplier<out AsyncResult<U>!>!: The function returning a new result.

- The type of the returned result's value.

AsyncResult<U>!: A new result.