produce

@FlowPreview
suspend fun <A, B> Flow<ProducerRecord<A, B>>.produce(settings: ProducerSettings<A, B>): Flow<RecordMetadata>

Produces all ProducerRecord in this Flow with the provided ProducerSettings. A new KafkaProducer is creating from the ProducerSettings and, all ProducerRecord are published in-order in a synchronous way.