DEV Community

Discussion on: Kotlin coroutine based KafkaProducer extension

Collapse
 
asafmesika profile image
asaf mesika

Did you manage to git rid of Threads in Consumer side as well?

Collapse
 
gklijs profile image
Gerard Klijs

Consumer is not thread safe, so I don't see how, unless you can 'force' a coroutine to always run on the same underlying thread. But that would kind of defeat the purpose for coroutines.