Category "kotlin-sharedflow"

Flow Debounce for several types

I have a screen with several switchcompats like on photo. And I want to collect only last input of each of them to send it to server. I use SharedFlow. Now I ta

Android LiveData advantage than other observable libraries

In 2022, What scenario can imagine LiveData is better than other observable libraries such as StateFlow, SharedFlow, Coroutine Channel and etc.

how to avoid repeatOnLifecycle excute again and again when fragment resume

how can I avoid the collect{} code execute again when navigate back to the fragment. ViewModel class private val _commitResult = MutableStateFlow<Map&l