Angius
04/03/2018, 1:27 AMgildor
04/03/2018, 1:37 AMwithContext(UI) {}
For UI you need this module from kotlinx.coroutines:
https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/kotlinx-coroutines-android/README.md
Also take a look on this guide about using coroutines with UI
https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/coroutines-guide-ui.md