vertx / io.vertx.kotlin.core.eventbus / io.vertx.core.eventbus.Message / replyAwait

replyAwait

suspend fun <R, T> Message<T>.replyAwait(message: Any): Message<R>

The same as reply(R message) but you can specify handler for the reply - i.e. to receive the reply to the reply.

Parameters

message - the message to reply with.

replyHandler - the reply handler for the reply.

suspend fun <R, T> Message<T>.replyAwait(message: Any, options: DeliveryOptions): Message<R>

The same as reply(R message, DeliveryOptions) but you can specify handler for the reply - i.e. to receive the reply to the reply.

Parameters

message - the reply message

options - the delivery options

replyHandler - the reply handler for the reply.