vertx / io.vertx.kotlin.coroutines

Package io.vertx.kotlin.coroutines

Types

CoroutineVerticle

abstract class CoroutineVerticle : Verticle

A Verticle which run its start and stop methods in coroutine. You should subclass this class instead of AbstractVerticle to create any verticles that use vertx-kotlin-coroutine.

ReceiveChannelHandler

class ReceiveChannelHandler<T> : ReceiveChannel<T>, Handler<T>

An adapter that converts a stream of events from the Handler into a ReceiveChannel which allows the events to be received synchronously.

Extensions for External Classes

io.vertx.core.Context

io.vertx.core.Future

io.vertx.core.Vertx

io.vertx.core.streams.ReadStream

io.vertx.core.streams.WriteStream

Functions

awaitBlocking

suspend fun <T> awaitBlocking(block: () -> T): T

Run an asynchronous block on a worker threads and awaits the result.

awaitEvent

suspend fun <T> awaitEvent(block: (h: Handler<T>) -> Unit): T

Run an asynchronous block and awaits the completion.

awaitResult

suspend fun <T> awaitResult(block: (h: Handler<AsyncResult<T>>) -> Unit): T

Run an asynchronous block and awaits the result.