Hi š I'm learning flows, and I have the following question. Is it possible for a flow to be collected by two different coroutines concurrently? I want the following properties
⢠a collector shouldn't affect the other one
⢠I want the flow to be able to use
Conflation
in case one of the collector is being to slow
⢠flow is generated once (meaning I don't want to compute each item in the flow twice)
I was able to do this using broadcast channel and consuming it as channel like
openSubscription().consumeAsFlow().conflate()
. Is is possible to do something similar to this using flows? Thanks!
Francisco
06/15/2021, 5:47 AM
also, if this is the wrong place to ask, sorry about that š