FirebaseExtended / make-it-so-android

Apache License 2.0
214 stars 58 forks source link

viewModelScope.launch(showErrorExceptionHandler) what is this? #21

Closed BobbeYo1983 closed 1 year ago

BobbeYo1983 commented 1 year ago

Could you tell me, please, in simple words, what does the line mean? viewModelScope.launch(showErrorExceptionHandler)

  1. In which Dispatcher does the coroutine run?
  2. How to run in Dispatchers.IO or do I need to add withContext(Dispatchers.IO) later?