Smorg
08/26/2021, 8:23 AMStateFlow
behaves), but once that value is consumed, it no longer has any value (until it receives another and the cycle continues).divid3d
08/26/2021, 8:44 AMSharedFlow
is what you might looking for.Smorg
08/26/2021, 9:12 AMSharedFlow
, but it doesn’t satisfy this requirement AFAICT
• with a replay value of 1, it is always going to keep and re-emit that 1 value if a new subscriber subscribes, but it is required for it not to keep that value if it receives it while there is a subscriber.
• with a replay value of 0, it is never going to keep any value, but it is required for it to keep 1 value when there are no subscribers.solidogen
08/26/2021, 9:23 AMSmorg
08/26/2021, 9:30 AMmario
09/02/2021, 9:54 AM