vertx / io.vertx.kotlin.coroutines / io.vertx.core.Vertx / dispatcher

dispatcher

fun Vertx.dispatcher(): CoroutineDispatcher

Returns a coroutine dispatcher for the current Vert.x context.

It uses the Vert.x context event loop.

This is necessary if you want to do coroutine synchronous operation in your handler

Parameters

block - the coroutine code