tuweni / org.apache.tuweni.concurrent / AsyncCompletion / executeBlocking

executeBlocking

open static fun executeBlocking(action: Runnable!): AsyncCompletion! (source)

Returns a completion that completes after the given blocking action executes asynchronously on ForkJoinPool#commonPool().

Parameters

action - Runnable!: The blocking action to execute.

Return
AsyncCompletion!: A completion.

open static fun executeBlocking(executor: Executor!, action: Runnable!): AsyncCompletion! (source)

Returns a completion that completes after the given blocking action executes asynchronously on an Executor.

Parameters

executor - Executor!: The executor.

action - Runnable!: The blocking action to execute.

Return
AsyncCompletion!: A completion.

open static fun executeBlocking(vertx: Vertx!, action: Runnable!): AsyncCompletion! (source)

Returns a completion that completes after the given blocking action executes asynchronously on a vertx context.

Parameters

vertx - Vertx!: The vertx context.

action - Runnable!: The blocking action to execute.

Return
AsyncCompletion!: A completion.

open static fun executeBlocking(executor: WorkerExecutor!, action: Runnable!): AsyncCompletion! (source)

Returns a completion that completes after the given blocking action executes asynchronously on a vertx executor.

Parameters

executor - WorkerExecutor!: A vertx executor.

action - Runnable!: The blocking action to execute.

Return
AsyncCompletion!: A completion.