I want to do http requesting with ktor in background thread.
Multi-Thread is needed for iOS, isn’t it?
Thank you 🙏
k
kpgalligan
11/14/2018, 2:55 PM
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
yuya_horita
11/15/2018, 2:25 AM
Yes, thank you 🙏
But, I hope I can use coroutines with background thread in the future.