escodro
12/21/2022, 3:37 PMsingle(qualifier = ApplicationScope) { MainScope() }
And using it like this:
internal class MyViewModel(private val applicationScope: CoroutineScope) : ViewModel() {
fun addTask() {
applicationScope.launch {
// Suspend fun
Shouldn’t this scope be available until the application is killed or am I missing something?
Thank you so much in advance!
EDIT: SOLVEDescodro
12/21/2022, 4:59 PM.cancel()
call in a very hidden position in my codebase. 🙃