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

nordiauwu

01/04/2022, 2:59 PM
Why isn't ktor-client using Dispatchers.IO?
r

Ryan

01/04/2022, 3:05 PM
getting blown up for call.receive?
n

nordiauwu

01/04/2022, 3:08 PM
They could use limited parallelism
r

Ryan

01/04/2022, 3:08 PM
i don't know what that means yet
r

Ryan

01/04/2022, 3:12 PM
is there a way to set it to use withContext(Dispatchers.IO) all the time?
put("/") { call.receive() }
now i need to do put("/") { withContext(Dispatchers.IO) {}}
n

nordiauwu

01/04/2022, 3:17 PM
I'm not sure about the server but ktor-client uses something called ClosableBlockingDispatcher and I'm wondering why
317 Views