Folks, how can I use Flow in a similar manner of C...
# announcements
v
Folks, how can I use Flow in a similar manner of ConflatedBroadcastChannel? I want to send a message coming from UI to a stream. BroadcastChannel had an offer method, what do I do with Flow ?
t
You can convert a
BroadcastChannel
to a
Flow
: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/as-flow.html This question fits best in the #C1CFAFJSK channel.
v
Thanks, it works!
l
Also, #C1CFAFJSK next time