tseisel
06/16/2019, 9:55 AMBroadcastChannel
for that purpose ? https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/-broadcast-channel/index.html
You publish with channel.send(event)
Multiple consumers can subscribe with channel.consumeEach { event ->
// Handle the event
}
farzad
06/16/2019, 10:51 AMBroadcastChannel
is what I need. But as you may know, it's experimental yet and might have breaking changes in the future.tseisel
06/16/2019, 1:22 PMfarzad
06/16/2019, 2:16 PM