vertx / io.vertx.kotlin.kafka.client.consumer / io.vertx.kafka.client.consumer.KafkaConsumer / subscribeAwait

# subscribeAwait

`suspend fun <K, V> KafkaConsumer<K, V>.subscribeAwait(topic: String): Unit`

Subscribe to the given topic to get dynamically assigned partitions.

### Parameters

`topic` - topic to subscribe to

`completionHandler` - handler called on operation completed

Returncurrent
KafkaConsumer instance *

`suspend fun <K, V> KafkaConsumer<K, V>.subscribeAwait(topics: Set<String>): Unit`

Subscribe to the given list of topics to get dynamically assigned partitions.

### Parameters

`topics` - topics to subscribe to

`completionHandler` - handler called on operation completed

Returncurrent
KafkaConsumer instance *