concurrent / 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 - The blocking action to execute.

Return
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 - The executor.

action - The blocking action to execute.

Return
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 - The vertx context.

action - The blocking action to execute.

Return
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 - A vertx executor.

action - The blocking action to execute.

Return
A completion.