https://kotlinlang.org logo
#ktor
Title
# ktor
k

Kirill Zhukov

03/22/2023, 11:01 PM
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

Aleksei Tirman [JB]

03/23/2023, 10:44 AM
This mainly depends on the platform. For example, all the JVM engines use
<http://Dispatchers.IO|Dispatchers.IO>
.
k

Kirill Zhukov

03/23/2023, 7:18 PM
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?
116 Views