What’s the current status of multi-threaded corout...
# kotlin-native
s
What’s the current status of multi-threaded coroutines on K/N? Are there
async
and
launch
implementations? Doesn’t seem to be available in
common
k
there are still separate
native-mt
artifacts for this
🙏 1
r
async
and
launch
are available in common even without multithreaded coroutines. You just can't use them to switch threads
n
can you switch threads?
k
Yes
s
In single threaded mode, does that mean that the scheduler does its best to suspend and resume as necessary to give multi-threaded-like behavior?
a
It means dispatchers are bound to a single thread to comply to the restrictive K/N memory model, instead of a shared thread pool like
Dispatchers.Default
in JVM. Jobs still run concurrently in the same cooperative scheduling manner.