abstract fun <U : Any> thenSupply(supplier: Supplier<out U>): AsyncResult<U>
(source)
Returns a completion that, when this result completes normally, completes with the value obtained after executing the supplied function.
supplier
- The function to use to compute the value of the returned result.
Return
A new result.
abstract fun <U : Any> thenSupply(vertx: Vertx, supplier: Supplier<out U>): AsyncResult<U>
(source)
Returns a completion that, when this result completes normally, completes with the value obtained after executing the supplied function on the vertx context.
supplier
- The function to use to compute the value of the returned result.
Return
A new result.