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

Luis Munoz

05/26/2020, 8:09 AM
How do I do a channel or flow Fan-out where the same value is received by all collectors or receivers? Documentation for channel fan-out just shows fan-out where the work is distributed, for flow share seems to be work in progress. What solutions are available now?
a

araqnid

05/26/2020, 8:13 AM
BroadcastChannel or StateFlow
z

Zach Klippenstein (he/him) [MOD]

05/26/2020, 8:23 AM
Sharing operators are being designed and discussed right now: https://github.com/Kotlin/kotlinx.coroutines/issues/2047
3 Views