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

Brendan Weinstein

07/08/2021, 6:19 PM
Is there anyone successfully using ktor on ios via kotlin multiplatform? I gave up trying 6-12 months ago in favor of my own home-grown (but hacky) solution, but curious if the kinks ever got worked out.
t

tulio

07/08/2021, 7:41 PM
I’m using ktor http client in a multiplatform library running on iOS and JVM/Android. So far, so good.
Do you remember what was the issue you were facing?
d

divyanshunegi

07/09/2021, 2:30 AM
Yup, I am using ktor for both android and iOS currently in my project, its not in production but still under development, so far all works fine
a

Aleksandr Ivanov

07/09/2021, 1:24 PM
Same for me. Using it in multiplatform library for both iOS and Android.
b

Brendan Weinstein

07/09/2021, 1:49 PM
Sweet -- I'll give it another try. I was running into occasional freeze exceptions within ktor
a

Aleksandr Ivanov

07/09/2021, 1:52 PM
Yes, you should use it carefully and use
-native-mt
version of coroutines to avoid freeze exceptions.
b

Brendan Weinstein

07/09/2021, 1:55 PM
was using native-mt back then as well
haven't done a new deploy yet, but working smoothly with local testing. great work ktor team!
t

tulio

07/11/2021, 4:38 PM
Do you guys think
-native-mt
is production ready? I’m not using it yet after seeing this information in the documentation:
Copy code
Using multithreaded coroutines may result in memory leaks. This can be a problem for complex coroutine scenarios under load. We are working on a solution for this.
3 Views