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

# endOffsetsAwait

`suspend fun <K, V> KafkaConsumer<K, V>.endOffsetsAwait(topicPartition: TopicPartition): Long`

Get the last offset for the given partition. The last offset of a partition is the offset of the upcoming message, i.e. the offset of the last available message + 1.

### Parameters

`topicPartition` - the partition to get the end offset.

`handler` - handler called on operation completed. The end offset for the given partition.