Duchynko
09/23/2019, 9:39 AMwasyl
09/23/2019, 9:50 AMrunBlocking
will wait until the block completes fullywasyl
09/23/2019, 9:50 AMDuchynko
09/23/2019, 9:54 AMDuchynko
09/23/2019, 9:58 AMDuchynko
09/23/2019, 10:02 AMwasyl
09/23/2019, 10:04 AMshowLoadingAnimation
on the main thread, and this doesn’t immediately show progress, but enqueues an action to show it as soon as them main thread is available. But since you immediately call runBlocking
on the main thread, the system doesn’t have an opportunity to show the progress.wasyl
09/23/2019, 10:04 AMviewModelScope
if you’re using `ViewModel`s