vertx / io.vertx.kotlin.rabbitmq / io.vertx.rabbitmq.RabbitMQClient / basicConsumerAwait

# basicConsumerAwait

`suspend fun RabbitMQClient.basicConsumerAwait(queue: String): RabbitMQConsumer`

### Parameters

`queue` -

`resultHandler` -

`suspend fun RabbitMQClient.basicConsumerAwait(queue: String, options: QueueOptions): RabbitMQConsumer`

Create a consumer with the given options.

### Parameters

`queue` - the name of a queue

`options` - options for queue

`resultHandler` - a handler through which you can find out the operation status; if the operation succeeds you can begin to receive messages through an instance of io.vertx.rabbitmq.RabbitMQConsumer