I'm also wondering how I could send the same messa...
# coroutines
d
I'm also wondering how I could send the same message to multiple channels (not fanOut in the docs..) from one
produce { }
function?
o
Copy code
val messages = BroadcastChannel<String>(1024)
…
messages.send("hello")
...
messages.consumeEach { … }
Each consumeEach will receive all messages sent to channel
That’s what I do for a small websocket app