You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently corotuines-interop is implemented differently for Kotlin/Native, using runBlocking. This is because Job can not be frozen. It has one significant limitation - you can't use coroutines-interop on main thread and subscribeOn is required. Looks like after Kotlin/kotlinx.coroutines#1648 it will be fixed and we will be able to use same implementation as for JVM.
The text was updated successfully, but these errors were encountered:
arkivanov
changed the title
Support multithreaded coroutines for Kotlin/Native
Support multithreaded coroutines for Kotlin/Native in coroutines-interop
Nov 19, 2019
#314 seems working with mt coroutines version. We could make a separate branch for mt coroutines interop as well, and publish. Perhaps publication of only coroutines-interop module would be enough.
It will lift the runBlocking limitation in native. The interop will be truly async, there will be no requirement to subscribe only on a background scheduler.
Currently
corotuines-interop
is implemented differently for Kotlin/Native, usingrunBlocking
. This is because Job can not be frozen. It has one significant limitation - you can't usecoroutines-interop
on main thread andsubscribeOn
is required. Looks like after Kotlin/kotlinx.coroutines#1648 it will be fixed and we will be able to use same implementation as for JVM.The text was updated successfully, but these errors were encountered: