MediumScenarioKotlin language
A coroutine launched in a ViewModel keeps running after the user leaves the screen. Why?
This answer is part of Pro
36 of 305 Mobile engineer (Android / iOS) answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhen do you use flatMapLatest on a Flow?Next A Flow collected in a fragment keeps collecting in the background. How do you fix it?