Kotlin Native Coroutines runBlocking

I’m trying to investigate coroutines under Kotlin Native. However, the method runBlocking does not seem to be available. What’s the reason behind it and how am I supposed to work around it? A lot of coroutine sample code uses runBlocking so I don’t know how to re-write that code under Kotlin native.

1 Like

Hello, @wernera77! Can you tell how are you including kotlinx.coroutines into your project? I’ve found a similar issue in the coroutines GitHub, maybe you’re facing the same problem

1 Like

I visited that thread before, but I overlooked that runBlocking is indeed available in the native library (just not in the common part). Thanks!