I would like to request some thoughts about possib...
# coroutines
v
I would like to request some thoughts about possible solution for such case: I need to have in-memory shared cache with data that could be refreshed from network(with debounce before the refresh) with possibility to observe the data So I thought about something like this: 1. Have
ConflatedBroadcastChannel
to act as in-memory cache 2. To have observability return it
asFlow()
. Flow just to not use channels in the public API 3. Have second
ConflatedBroadcastChannel
to receive update request events that will be used
asFlow
just to
debounce
the refreshing So I’m just thinking maybe there are already some flow builders or just any other approach that could make the solution simpler for this case?