https://kotlinlang.org logo
#coroutines
Title
# coroutines
b

bj0

10/03/2017, 8:09 PM
the only way to do what you said is to execute the handlers serially,
BroadcastChannel
sends them in parallel so the handlers can't effect one another. That's why I suggested using a "pipeline". The problem with peeking is that it wouldn't be threadsafe as you can have multiple receivers consuming a channel