onCleared

fun onCleared()

Cancels any pending work when the parent ViewModel is about to be destroyed.