vertx / io.vertx.kotlin.rabbitmq / io.vertx.rabbitmq.RabbitMQClient / basicPublishAwait

# basicPublishAwait

`suspend fun RabbitMQClient.basicPublishAwait(exchange: String, routingKey: String, message: JsonObject): Unit`

Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.

### Parameters

`exchange` -

`routingKey` -

`message` -

`resultHandler` -