So if we want to implement multithreading in our shared code with common logic, we should use coroutines for all parts of our project, so we need to setup correct scopes and contexts of our coroutines. We also used MainScope to call suspended methods in our native Android app. But in other cases we should use queues to request our business logic correctly and process the result responses. In this case we have no need event to use DispatchQueue in our iOS native application. This library makes all asynchronous work under its hood. In previous sample we used Ktor to make our common network client. In this part I’m going to describe another solution, it will be KMM application with fully shared common code and common multithreading in shared business logic. ![]() In previous article I demontstrated one of the possible solutions to implement multitheading in Kotlin Multiplatform application. ![]() Hi everyone! My name is Anna Zharkova, I’m Lead Mobile developer in “Usetech” software company.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |