Hi, silly question I understand that ktor's httpclient uses the IO dispatcher by default. But I'm seeing that the defaultRequest {} block from the HttpClientConfig is running on the parent context. Is there a way of forcing the whole request generation to also run on the default IO dispatcher?
Alex Nabrozidis
05/17/2024, 7:53 AM
I could just wrap all httpclient calls with withContext(Dispatchers.IO) but I want to avoid that if possible
a
Aleksei Tirman [JB]
05/17/2024, 9:50 AM
Can you point to the place where the parent context is used? Or can you describe the way you checked that?
a
Alex Nabrozidis
05/17/2024, 10:20 AM
I used the debugger with a breakpoint to a potentially slow operation I have inside the