yusuf3000
06/19/2018, 11:05 AMDispatchQueue.global(qos: .userInteractive).sync { }
. I also keep a reference to this queue.
Then from the iOS side i want to call methods on the same K/N objects and again, I use the same serial queue and call those methods.
But you cannot share objects between threads in K/N and a serial queue can still use a different thread each time, it’s up the OS. (I’m aware that you can share objects in K/N using Workers
but all this code is in the common module rather than the iOS module so I do not have access to it)
So would i need to change the implementation so i use the same thread each time from iOS or is using a serial queue that could potentially use multiple threads suffice?svyatoslav.scherbina
06/19/2018, 11:30 AMThen from the iOS side i want to call methods on the same K/N objects?
yusuf3000
06/19/2018, 11:31 AMsvyatoslav.scherbina
06/19/2018, 11:46 AMyusuf3000
06/19/2018, 11:46 AMsvyatoslav.scherbina
06/19/2018, 11:53 AMIt’s a property of the AppDelegateWell, it would be OK if you write and read this field only from that serial queue. Does your Kotlin object have any mutable fields or refer (directly or indirectly) to some Kotlin object with mutable fields?
yusuf3000
06/19/2018, 11:54 AMahmedre
06/19/2018, 12:00 PMsvyatoslav.scherbina
06/19/2018, 12:26 PMyusuf3000
06/19/2018, 12:31 PMsvyatoslav.scherbina
06/19/2018, 12:45 PM