Coroutines - job cancelation
maiconhellmann-n5 opened this issue · 0 comments
maiconhellmann-n5 commented
I could not find any mechanism to cancel the requests in the ViewModels
.
Example DetailViewModel
line 48:
withContext(dispatchers.io) { userSource = getUserDetailUseCase(forceRefresh = forceRefresh, login = argsLogin) }
Is it the case to use androidx.lifecycle
with viewModelScope
(although still in alpha)?
https://developer.android.com/jetpack/androidx/releases/lifecycle