Thread
#multiplatform
    Kris Wong

    Kris Wong

    2 years ago
    interesting commentary from Roman on multi-threaded coroutines: "To give you some more detail on what's holding us back. kotlinx.coroutines is a multiplatform library. Currently all the "multithreading-capable" data structures are part of JVM compilation only while Native and JS contains simple stubs. In order to support multi-threading on Native we need to share this code between JVM and Native, while leaving stubs for JS. Unfortunately, our current MPP model in Kotlin (which is still experimental) does not support this. We are working on its next version code-named "Hierarchical MPP" (HMPP) which enable this kind of fine-grained sharing."
    s

    serebit

    2 years ago
    Yep. There's a Gradle property that enables the new HMPP model, but it's a bit buggy with the 1.3.50 Kotlin plugin in IntelliJ.