If all CPU cores are tied up, there’s literally no compute resources left to spawn IO threads. Dispatchers.IO threads are still running on the same physical hardware that Dispatchers.Default are, even if the thread pools are different
u
uli
03/24/2021, 3:13 PM
@Casey Brooks, the cores are probably idle. Only the thread are blocked. @vineethraj49 runBlocking is not allowed inside a coroutine.
uli
03/24/2021, 3:16 PM
This 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.