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

zak.taccardi

08/01/2019, 3:50 PM
Does
Flow<T>
support multicasting yet?
d

Dico

08/01/2019, 3:53 PM
Flow is cold api, therefore it never will
But you can consume it with a broadcast channel if you want to do that
There might be a toBroadcastChannel function
But if there isn't it's simple to make your own
g

gildor

08/01/2019, 3:55 PM
Nope, most probably it will be available https://github.com/Kotlin/kotlinx.coroutines/issues/1261
Also, there is also PR with essentially hot Flow: DataFlow
4 Views