What is the current state of the Kotlin Native ver...
# coroutines
n
What is the current state of the Kotlin Native version of the KotlinX Coroutines library? Which features are available, and what are the key limitations in the Kotlin Native version?
g
The main limitation is lack of multithreading
Otherwise everything from kotlinx-coroutines-core should be available for native
n
Does that include support for the Actor concurrency model?
I might be mistaken but the
delay
function with the Kotlin JVM version relies on threads. Is the
delay
function available in the Kotlin Native version (without the reliance on threads)?
g
You don't need direct access to thread for delay, you can implement it with event loop, same on JVM
Actors are there, but the same limitation, you cannot pass non-frozen data between threads
n
That limitation will come from Kotlin Native's memory model.
For back-end development the lack of multi-threading is more of an annoyance than a big pain.
Presumably for all data types (incl custom ones) there will be a straightforward way to create a immutable (frozen) copy of the data.
g
Yeah I know, I agree with your