is it possible to set a different dispatcher on th...
# ktor
h
is it possible to set a different dispatcher on the Darwin engine other than Unconfined?
a
Unfortunately, no. Can you please describe your use case?
h
I don't wanna use
withContext(io)
everytime i do an API call on iOS?
a
I've created an issue to address this problem
thank you color 1
h
It'll be great if we can control the dispatchers tbh. For example I want to create a separate dispatcher just for the client because I don't wanna exhaust the IO, preferably for example limit the parallelism of the dispatcher I'm gonna pass down to the client, I'm not sure whether this should be done on this level or as a part of the higher architectural implementation. Thank you btw for creating this FR.
As of now the context switching is I think the biggest bottleneck for iOS's Ktor client implementation, as all of my use cases need to change the dispatcher to IO when performing an API request