open static fun <T : Any!> executeBlocking(fn: Supplier<T>!): AsyncResult<T>!
(source)
Returns a result that, after the given blocking function executes asynchronously on ForkJoinPool#commonPool()
and returns a result, completes when the returned result completes, with the same value or exception.
fn
- Supplier<T>!: The function returning a result.
- The type of the returned result's value.
Return
AsyncResult<T>!: A new result.
open static fun <T : Any!> executeBlocking(executor: Executor!, fn: Supplier<T>!): AsyncResult<T>!
(source)
Returns a result that, after the given blocking function executes asynchronously on an Executor
and returns a result, completes when the returned result completes, with the same value or exception.
executor
- Executor!: The executor.
fn
- Supplier<T>!: The function returning a result.
- The type of the returned result's value.
Return
AsyncResult<T>!: A new result.
open static fun <T : Any!> executeBlocking(vertx: Vertx!, fn: Supplier<T>!): AsyncResult<T>!
(source)
Returns a result that, after the given blocking function executes asynchronously on a vertx context and returns a result, completes when the returned result completes, with the same value or exception.
vertx
- Vertx!: The vertx context.
fn
- Supplier<T>!: The function returning a result.
- The type of the returned result's value.
Return
AsyncResult<T>!: A new result.
open static fun <T : Any!> executeBlocking(executor: WorkerExecutor!, fn: Supplier<T>!): AsyncResult<T>!
(source)
Returns a result that, after the given blocking function executes asynchronously on a vertx executor and returns a result, completes when the returned result completes, with the same value or exception.
executor
- WorkerExecutor!: A vertx executor.
fn
- Supplier<T>!: The function returning a result.
- The type of the returned result's value.
Return
AsyncResult<T>!: A new result.