SharedFlow is used for one-time events (broadcast), while StateFlow is for state representation.
← Kotlin theorytheory 0/50 · 0%
Coroutines · hard
38. SharedFlow and StateFlow
Advanced stream types.
Check your understanding
1. Which has a 'replay' buffer?
2. Difference?