`There is no event loop. Use runBlocking{...} to s...
# coroutines
f
There is no event loop. Use runBlocking{...} to start one
I run the kotlin native lib on iOS, it throw this error.
v
Have you tried using
runBlocking
?
f
Yes,I tried. but it would block the thread.
l
@Frank Feng The solution in this comment should be what you're looking for: https://github.com/Kotlin/kotlinx.coroutines/issues/470#issuecomment-440080970
f
Thanks , it's really useful
v
Unfortunately, this is the limitation of current MPP model. We are actively working (branch
native-mt
) on the replacement
136 Views