https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

dimsuz

01/29/2020, 5:24 PM
Perhaps an FAQ, but I see that Kotlin/Native has no Dispatchers.IO, why is that? (I tried to google this, no answer) I am an Android dev, so far don't have great knowledge of iOS internals. Also not sure if this should be asked in #multiplatform instead
z

Zach Klippenstein (he/him) [MOD]

01/29/2020, 5:56 PM
Using coroutines on different threads in K/N is complicated. It's not as simple as just plugging in a different dispatcher, there are a bunch of memory implications and I don't think the coroutines runtime even supports it well yet (see https://github.com/Kotlin/kotlinx.coroutines/pull/1648)
d

dimsuz

01/29/2020, 11:14 PM
I've seen this PR earlier, and thought this might be related. Thanks for clarification!