.
What if the commonMain have concurreny logic and I want to share those with Android and iOS?
Landerl Young
11/16/2018, 1:36 PM
The kotlinconf project shows using coroutine to achieve async request (while not really multi threaded). And coroutine is planing to support real multi thread in Kotlin/Native.
So, is it true that in the near future we can use coroutine to achieve concurrency while keep code common (ie. compiles) to both Android and iOS (even more targets)
Thanks.
One more thing to make sure is that under coroutine model, we can have shared variable between different coroutines so they are also possibly shared between threads.
Should we take care of synchronization(and how), because in K/N we will get an IncorrectDereferenceException.