Patrick
01/28/2020, 10:35 AMfun 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?Patrick
01/28/2020, 11:02 AMfun main = runBlocking {...}
Artyom Degtyarev [JB]
01/28/2020, 2:14 PM