reactormonk
02/07/2024, 5:52 PMMutableSharedFlow
that it won't get any new messages, so `collect`s terminate?Sam
02/07/2024, 6:09 PMCasey Brooks
02/07/2024, 6:10 PMtakeWhile
to respond to it themselves. Alternatively, use a Channel, which can be explicitly closed.reactormonk
02/07/2024, 6:47 PMChannel
, can I expose a Flow
where all consumers get the same data? receiveAsFlow()
seems to spread the elements.Casey Brooks
02/07/2024, 6:48 PMchannel.receiveAsFlow().shareIn()
should do the trickCasey Brooks
02/07/2024, 6:48 PM