elizarov
03/06/2017, 11:26 AMkotlinx.coroutines
will have an implementation of CoroutineDispatcher
for Android UI main thread. You’ll use it like this: launch(UI) { … }
to start a UI-confined coroutine, where UI
is the name we need to pick. So far, based on the work published by the community, two popular names have arisen. I’m also offering a couple of variations that might serve as names:
1. Android
, so that we have launch(Android) { … }
2. MainThread
, so that we have launch(MainThread) { … }
.
3. MainHandler
, so that we have launch(MainHandler) { … }
.
4. MainContext
, so that we have launch(MainContext) { … }
.
What do you prefer? Use reactions: