-
-
Save MarcoSignoretto/a7da5c106206f7f16ff539b5f7b6ec30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.SupervisorJob | |
actual open class ViewModel { | |
actual val viewModelScope: CoroutineScope = | |
CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment