What dispatcher does ktor client make requests on?...
# ktor
k
What dispatcher does ktor client make requests on? Does it depend on engine? I’m seeing
DarwinClientEngine
declares
Unconfined
dispatcher, but not sure this it’s actually being used for requests?
a
This mainly depends on the platform. For example, all the JVM engines use
<http://Dispatchers.IO|Dispatchers.IO>
.
k
I’m mostly curious to understand why Unconfined is used on darwin? Wouldn’t it result in request being made on main thread if I get unlucky?
177 Views