people apparently workaround this by dispatching o...
# ktor
b
people apparently workaround this by dispatching on the main thread but I don't think that's reasonable?
r
It actually works quite well. Don’t confuse “dispatching on the main thread” with “doing network operations on the main thread”. When you call suspend functions in Ktor’s HttpClient, the work happens on a background thread internally. It’s only when the suspend function returns that you’re back on main. This is usually fine for simple use-cases if all you’re doing is taking data from the web response and displaying it in UI.
b
Ohh ok. Yeah I guess that makes sense now that I think about it. Thanks for the insight.