jean
kotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
iosTest
actual abstract class BaseTest { @OptIn(DelicateCoroutinesApi::class) actual fun <T> runTest(block: suspend CoroutineScope.() -> T) { var error: Throwable? = null GlobalScope.launch(Dispatchers.Main) { try { block() } catch (t: Throwable) { error = t } finally { CFRunLoopStop(CFRunLoopGetCurrent()) } } CFRunLoopRun() error?.also { throw it } } }
andylamax
Dispatchers.Default
Osman Saral
leandro
1.5.1-native-mt
A modern programming language that makes developers happier.