`MutableStateFlow` emits the last known value when...
# coroutines
s
MutableStateFlow
emits the last known value when it’s collection is started, and it also doesn’t publish a value if it
equals
the previous event. If I wanted something that just receives events as they come in, and also publishes EVERY event regardless of whether it’s the exact same event as the last one, what are my options?
j
SharedFlow
s
Thank you. Looks promising. I forgot about these 🙂
i
The canonical article about this is https://elizarov.medium.com/shared-flows-broadcast-channels-899b675e805c which has a lot of use cases and what is appropriate for each
s
thanks 🙂