Join Slack
Powered by
Yes, you can. Check this guide about usage of coro...
# coroutines
g
gildor
04/05/2018, 2:58 AM
Yes, you can. Check this guide about usage of coroutines for UI.
https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/coroutines-guide-ui.md
tl;dr use CoroutineDispatcher
UI
to run coroutine on the main thread.
UI
dispatcher also uses Handler under the hood
Open in Slack
Previous
Next