Hey :slightly_smiling_face: Quick stupid question...
# coroutines
a
Hey 🙂 Quick stupid question. When you’re in a coroutine and call a blocking java function (like a guava future’s get method) does it block the whole thread? I’d say yes but then how do you handle libraries that use that kind of future internally?
l
Yes, there is no magic that transforms blocking calls into non blocking ones in Kotlin.
d
<http://Dispatchers.IO|Dispatchers.IO>
is the one to use with blocking calls
👍 1