I want to do http requesting with ktor in backgrou...
# kotlin-native
y
I want to do http requesting with ktor in background thread. Multi-Thread is needed for iOS, isn’t it? Thank you 🙏
k
Ktor concurrency is implemented with coroutines. Native coroutines are single threaded at the moment. Ktor does iOS networking with async calls, though, so it’ll suspend the main thread and will be ok in most cases, except maybe if you were loading huge files. You’d be processing the result on the main thread
y
Yes, thank you 🙏 But, I hope I can use coroutines with background thread in the future.
k
Same
😎 2