uiScope
This is the main scope for all coroutines launched by MainViewModel. Since we pass viewModelJob, you can cancel all coroutines launched by uiScope by calling viewModelJob.cancel()
This is the main scope for all coroutines launched by MainViewModel. Since we pass viewModelJob, you can cancel all coroutines launched by uiScope by calling viewModelJob.cancel()