肖志康
09/01/2023, 3:21 AMreplay
and replayCache
in SharedFlow
. As far as I know, this parameter is designed for any new coming collector to be notified about some data emitted eariler. But I have no idea why it is designed as Int, is there any concrete use case that exactly 5 old emittions should be replayed to new collector, not all of the outdated data?xoangon
09/01/2023, 6:06 AMreplay = Int.MAX_VALUE
肖志康
09/01/2023, 9:25 AMreplay = Int.MAX_VALUE
meets my use case. But I want to know in which use case we need to set replay as a specific int value, not 0 nor Int.MAX_VALUEWojtek Kalicinski
09/01/2023, 9:50 AM肖志康
09/01/2023, 10:53 AMWojtek Kalicinski
09/01/2023, 11:02 AM肖志康
09/04/2023, 2:25 AM