Ovsyannikov Alexey
10/06/2021, 12:06 PMMutableSharedFlow
- what shared flow will do in case if nobody is listening for its stream? As I understand, currently all hot flows will throw out data when there are nobody to get it. Or I missed something? If not - is there some built-in flow which allow to prohibit trashing of data in case when nobody listetning that flow?y9san9
10/06/2021, 12:24 PMshareIn
and SharingStarted.Lazily
or buffer with onBufferOverflow = SuspendOvsyannikov Alexey
10/06/2021, 12:35 PMy9san9
10/06/2021, 12:37 PMOvsyannikov Alexey
10/06/2021, 12:42 PMWhileSubscribed
instead of SharingStarted.Lazily
in my caseshareIn
will replay data in each new subscriber. I need next behaviour:
• When there is at least one subscriber - emit to all subscribers currently accumulated data
• When there are no any subscriber - accumulate data
• Any sent data from flow must be removed and not repeated in any new subscribersy9san9
10/06/2021, 1:00 PMOvsyannikov Alexey
10/06/2021, 1:01 PMy9san9
10/06/2021, 1:01 PMsuspend
, but not accumulate?Ovsyannikov Alexey
10/06/2021, 1:01 PMreplay
count parametery9san9
10/06/2021, 1:02 PMOvsyannikov Alexey
10/06/2021, 1:02 PMAdam Powell
10/07/2021, 12:56 PM