vertx / io.vertx.kotlin.kafka.client.producer / io.vertx.kafka.client.producer.KafkaProducer / closeAwait

# closeAwait

`suspend fun <K, V> KafkaProducer<K, V>.closeAwait(): Unit`

Close the producer

### Parameters

`completionHandler` - handler called on operation completed

`suspend fun <K, V> KafkaProducer<K, V>.closeAwait(timeout: Long): Unit`

Close the producer

### Parameters

`timeout` - timeout to wait for closing

`completionHandler` - handler called on operation completed