Andy Victors01/29/2021, 10:28 AM
it does not manage async execution for me - the requests API is
based. So I think I have two options: A) Manage async execution by coroutines inside the common MPP code. From what I recall trying similar things a year ago, there are headaches configuring coroutine contexts for iOS and also some limitations (main thread only). So I am not sure if it all will work at all. B) Or, I can put async logic into platform code. More code but ok. But still, will I be able to call
marked methods from iOS? I'd like to have thoughts on this topic from more experienced folks.
Tijl01/29/2021, 11:09 AM
Andy Victors01/29/2021, 11:14 AM
so I cannot use them for async calls without wrapping in coroutines or whatever.
Tijl01/29/2021, 11:19 AM
Scales as you need it. Using Kotlin coroutines, Ktor is truly asynchronous and highly scalable. Use the power of non-blocking development without the callback nightmare.am I understanding you right that you want to do something asynchronously but “without wrapping in coroutines or whatever.“?
Andy Victors01/29/2021, 11:42 AM
Tijl01/29/2021, 11:47 AM
method they will not to worry about those things. but if you don’t want them to have to call a `suspend`ed method, you can do that for them, for example you can use Deffered and wrap the calls your method do to it in
Andy Victors01/29/2021, 11:57 AM
Tijl01/29/2021, 11:59 AM
Kris Wong01/29/2021, 1:40 PM
Michal Klimczak01/29/2021, 4:22 PM
Andy Victors01/29/2021, 8:13 PM
Michal Klimczak01/29/2021, 8:24 PM
Kris Wong01/29/2021, 8:28 PM
Michal Klimczak01/29/2021, 8:53 PM
Michal Klimczak01/29/2021, 9:03 PM
Tijl02/01/2021, 7:39 AM