Here is a quick poll. Next release of `kotlinx.cor...
# coroutines
e
Here is a quick poll. Next release of
kotlinx.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:
2️⃣ 41
3️⃣ 3
1️⃣ 4
4️⃣ 3