suspend fun <K, V> KafkaConsumer<K, V>.subscribeAwait(topic: String): Unit
Subscribe to the given topic to get dynamically assigned partitions.
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.
topics
- topics to subscribe to
completionHandler
- handler called on operation completed
Returncurrent
KafkaConsumer instance *