open static fun <T : Any> runOnContext(vertx: Vertx, fn: Supplier<out AsyncResult<T>>): AsyncResult<T>
(source)
Returns a result that, after the given function executes on a vertx context and returns a result, completes when the returned result completes, with the same value or exception.
Note that the given function is run directly on the context and should not block.
fn
- The function returning a result.
- The type of the returned result's value.
Return
A new result.