pardom
02/26/2019, 4:37 PMrunBlocking
isn’t in common so that can’t be used.thana
02/26/2019, 4:54 PMcommonTest
like that:
expect fun runTest(block: suspend () -> Unit)
that would be used to wrap the unit test testing the coroutineactual fun runTest(block: suspend () -> Unit) = runBlocking { block() }
and on js like that actual fun runTest(block: suspend () -> Unit): dynamic = GlobalScope.promise {
block()
}
delay
gildor
02/27/2019, 3:30 AM