Send the messages via a coroutine channel. Instead...
# coroutines
u
Send the messages via a coroutine channel. Instead of concurrent queues. The channel can be limited in size and will suspend your coroutine until more space becomes available. No blocking, no sleep, no delay: https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#channels