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

rudolf.hladik

11/29/2020, 9:21 PM
So Ktor Http client with default engines for Android and iOS doesn’t support mt coroutines and Ktor http client with CIO engine supports mt coroutines but doesn’t support https? Is it this way or am I doing something wrong?
t

Thomas

11/29/2020, 9:32 PM
The iOS engine should work with mt coroutines in the next version 1.4.3. See: https://github.com/ktorio/ktor/pull/2193
You could build Ktor yourself if you don't want to wait
j

Joost Klitsie

11/29/2020, 9:33 PM
Well I'm pretty sure the android okhttp client supports mt, but I don't know about ios
t

Thomas

11/29/2020, 9:33 PM
Android okhttp client works fine with mt coroutines
Just to be clear, Ktor 1.4.2 is already compatible with mt coroutines on iOS as long as you only call it from
Dispatchers.Main
. Ktor 1.4.3 will also support other dispatchers like
Dispatchers.Default
on iOS.
r

rudolf.hladik

11/29/2020, 9:53 PM
@Thomas thx for the update, looking forward to 1.4.3 then.
9 Views