Derek Ellis
07/05/2021, 1:25 PMlifecycleScope
in an activity's onDestroy()
since the scope only spans until onDestroy()
is called, right? What would be a suitable alternative to launch a coroutine to do some kind cleanup job that shouldn't be immediately canceled when the activity is destroyed? MainScope
?bezrukov
07/05/2021, 2:05 PMMainScope
is a short version for declaring scope with main dispatcher (which will work, but smells).