vertx / io.vertx.kotlin.core / io.vertx.core.Context / executeBlockingAwait

# executeBlockingAwait

`suspend fun <T> Context.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> Context.executeBlockingAwait(blockingCodeHandler: Handler<Future<T>>): T?`

Invoke io.vertx.core.Context with order = true.

### Parameters

`blockingCodeHandler` - handler representing the blocking code to run

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