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

# assignAwait

`suspend fun <K, V> KafkaConsumer<K, V>.assignAwait(topicPartition: TopicPartition): Unit`

Manually assign a partition to this consumer.

### Parameters

`topicPartition` - partition which want assigned

`completionHandler` - handler called on operation completed

Returncurrent
KafkaConsumer instance *

`suspend fun <K, V> KafkaConsumer<K, V>.assignAwait(topicPartitions: Set<TopicPartition>): Unit`

Manually assign a list of partition to this consumer.

### Parameters

`topicPartitions` - partitions which want assigned

`completionHandler` - handler called on operation completed

Returncurrent
KafkaConsumer instance *