Regarding the interplay between exported Kotlin Na...
# kotlin-native
p
Regarding the interplay between exported Kotlin Native C Libraries and coroutines: If I have a function like this:
Copy code
fun test = runBlocking<Unit> {
    someLibraryCode()
}
and I call this function from my C code, the program crashes with the message:
There is no event loop. Use runBlocking { ... } to start one.
How am I supposed to handle this, if I want to call this function from C? Is it possible to wrap the entire program in
runBlocking<Unit> {...}
, like I can do in a K/N project? Is there another way to avoid this error?
Actually, this also happens if I call this function from K/N, but without using
fun main = runBlocking {...}
a
About this one: it would be nice if you can share a minimized version of your project, to play with.