vineethraj49
03/24/2021, 12:24 PMDispatchers.Default
threads (Runtime.getRuntime().availableProcessors()
) are blocked under runBlocking
, a GlobalScope.future(<http://Dispatcher.IO|Dispatcher.IO>)
also fails to launch; why is this the case?Casey Brooks
03/24/2021, 2:52 PMuli
03/24/2021, 3:13 PMThis function should not be used from a coroutine. It is designed to bridge regular blocking code to libraries that are written in suspending style, to be used in main functions and in tests.
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html