vertx / io.vertx.kotlin.core.eventbus / io.vertx.core.eventbus.EventBus / sendAwait

sendAwait

suspend fun <T> EventBus.sendAwait(address: String, message: Any): Message<T>

Like io.vertx.core.eventbus.EventBus but specifying a replyHandler that will be called if the recipient subsequently replies to the message.

Parameters

address - the address to send it to

message - the message, may be null

replyHandler - reply handler will be called when any reply from the recipient is received, may be null

Returna
reference to this, so the API can be used fluently *

suspend fun <T> EventBus.sendAwait(address: String, message: Any, options: DeliveryOptions): Message<T>

Like io.vertx.core.eventbus.EventBus but specifying a replyHandler that will be called if the recipient subsequently replies to the message.

Parameters

address - the address to send it to

message - the message, may be null

options - delivery options

replyHandler - reply handler will be called when any reply from the recipient is received, may be null

Returna
reference to this, so the API can be used fluently *