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

spierce7

08/18/2020, 3:49 AM
Looking to confirm. On a
Channel
I'd use
consumeAsFlow
if and only if the Flow was guaranteed to only have a single subscriber, but I'd use
receiveAsFlow
if one or multiple subscribers were possible, right?
o

octylFractal

08/18/2020, 3:51 AM
if you want the multiple subscribers to only process whichever item they happen to receive, yes. it won't send the same item to multiple subscribers
7 Views