Lance Gao
04/28/2023, 3:39 AMlifecycleScope.launchWhenResumed
and lifecycle.repeatOnLifecycle(Lifecycle.State.RESUMED)
, so could anyone explain it for me? Thanks in advance!Tijl
04/28/2023, 8:26 AMlaunchWhenResumed
does not cancel when the lifecycle goes to pause, only when the lifecycle is destroyed.
repeatOnLifecycle
with RESUMED
does cancel when the lifecycle goes to pause.Lance Gao
04/28/2023, 8:28 AM