Skip to content

Instantly share code, notes, and snippets.

@cesarferreira
Last active May 18, 2019 00:46
Show Gist options
  • Save cesarferreira/d3e6da3017ceb2f757f10b7a48a7557d to your computer and use it in GitHub Desktop.
Save cesarferreira/d3e6da3017ceb2f757f10b7a48a7557d to your computer and use it in GitHub Desktop.
class MyViewModel: ViewModel() {
init {
viewModelScope.launch {
// Coroutine that will be canceled when the ViewModel is cleared.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment