Skip to content

Instantly share code, notes, and snippets.

Last active Feb 18, 2022
What would you like to do?
Extension Property: viewModelScope
public val ViewModel.viewModelScope: CoroutineScope
get() {
return setTagIfAbsent(
CloseableCoroutineScope(SupervisorJob() + Dispatchers.Main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment