dimsuz
12/13/2021, 4:13 PMval flowA: MutableSharedFlow<Int>
flowB.collectTo(flowA)
I know there's shareIn
, but it creates a new flow, while I have an existing one.Joffrey
12/13/2021, 4:16 PMemitAll()
for MutableSharedFlow
, but you may be able to do flowB.collect(flowA::emit)
dimsuz
12/13/2021, 4:21 PMZach Klippenstein (he/him) [MOD]
12/13/2021, 7:02 PMMutableSharedFlow
implements FlowCollector
so you should just be able to do flowB.collect(flowA)
Joffrey
12/13/2021, 7:28 PMdimsuz
12/14/2021, 10:33 AMcollect
is marked with @InternalCorouinteApi
...Joffrey
12/14/2021, 6:11 PM