vertx / io.vertx.kotlin.core / io.vertx.core.Vertx / executeBlockingAwait

executeBlockingAwait

suspend fun <T> Vertx.executeBlockingAwait(blockingCodeHandler: Handler<Future<T>>, ordered: Boolean): T?

Safely execute some blocking code.

Parameters

blockingCodeHandler - handler representing the blocking code to run

ordered - if true then if executeBlocking is called several times on the same context, the executions for that context will be executed serially, not in parallel. if false then they will be no ordering guarantees

resultHandler - handler that will be called when the blocking code is complete

suspend fun <T> Vertx.executeBlockingAwait(blockingCodeHandler: Handler<Future<T>>): T?

Like io.vertx.core.Vertx called with ordered = true.

Parameters

blockingCodeHandler -

resultHandler -