receiveAsFlow
This function is an extension function for KafkaReceiver that returns a Flow of ReceiverRecords.
Return
a Flow of ReceiverRecord.
Example usage:
val kafkaReceiver: KafkaReceiver<String, String> = ...
val flow: Flow<ReceiverRecord<String, String>> = kafkaReceiver.receiveAsFlow()
Content copied to clipboard