Vikas Singh
06/09/2022, 7:10 PMErick Sumargo
06/09/2022, 11:35 PMephemient
06/09/2022, 11:38 PMlifecycleScope.launchWhenStarted
will pause when not visible. but repeatOnLifecycle
is the better choice in most cases, as it will cancel and restart coroutines instead of just suspending them