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

# seekToBeginningAwait

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

Seek to the first offset for each of the given partition.

### Parameters

`topicPartition` - topic partition for which seek

`completionHandler` - handler called on operation completed

Returncurrent
KafkaConsumer instance *

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

Seek to the first offset for each of the given partitions.

### Parameters

`topicPartitions` - topic partition for which seek

`completionHandler` - handler called on operation completed

Returncurrent
KafkaConsumer instance *