Is it only possible to send on a channel from a coroutine? What if I have regular code that produces something that I want to send to a work pool for example how do I do that?
n
Niklas Gürtler
02/11/2021, 11:50 AM
You can use
offer
which is not a suspend fun, but if the Channel's buffer is full, it will fail