It is, but it only exists in native and jvm, so if you want to use it in common code, you have to add an expect/actual
👍 3
j
jeremy
06/09/2019, 3:23 PM
What should the method signature look like? expect fun runBlocking(block: () -> Unit) will still results in "should be called only from a coroutine or another suspend function"
jeremy
06/09/2019, 3:23 PM
Is there an alternate way to test coroutine code in unit test?
b
basher
06/09/2019, 3:29 PM
Not that I’m aware
basher
06/09/2019, 3:29 PM
I just copied the method signature from the original native/jvm declaration