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

sdeleuze

04/09/2019, 9:19 AM
About https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1554754893034600, is it possible to use
Flow
for hot streams as well like where we use
Flux
or
Flowable
for these use cases? If yes what are the pros/cons compared to channels?
e

elizarov

04/09/2019, 10:17 AM
Yes. You can either directly use
flow { ... }
builder and emit hot events into flow, or you can take a `Channel`/`BroadcastChannel` with hot events and convert it to flow using
.asFlow()
👍 1
2 Views