Katarzyna
10/13/2021, 7:31 AMgildor
10/13/2021, 7:59 AMgildor
10/13/2021, 8:02 AMIn modern Android applications, instead of defining your own scope, you can also useI would say that it’s an option by default, and you should have a really good reason to use custom scopesviewModelScope
marcinmoskala
10/18/2021, 4:48 PMsetMain
, but it still limits testing capabilities a bit 🤔 Also I find it useful to set own CoroutineExceptionHandler
. Can it be done for viewModelScope
?gildor
10/19/2021, 2:25 AMbut it still limits testing capabilities a bitIn what sense? What is your use case for CoroutineExceptionHandler in view model? Our project is definitely not small at all, and mostly coroutines based, but we have 0 custom exception handlers
marcinmoskala
10/19/2021, 11:29 AMmarcinmoskala
10/19/2021, 11:29 AMgildor
10/20/2021, 2:23 AMgildor
10/20/2021, 2:24 AMmarcinmoskala
10/23/2021, 9:04 AMwhen
that decided how to handle this (so show login view in case od 401, maybe a dialog on 500, maybe a snackbar when problems with internet connection etc.)gildor
10/24/2021, 2:46 PMgildor
10/24/2021, 2:47 PM