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

writeAwait

suspend fun <K, V> KafkaProducer<K, V>.writeAwait(record: KafkaProducerRecord<K, V>): RecordMetadata

Asynchronously write a record to a topic

Parameters

record - record to write

handler - handler called on operation completed

Returncurrent
KafkaWriteStream instance *