interactor.login(trigram: trigram) is a kotlin native function
My problem is when i reach that code i get a weird error illegal attempt to access non-shared login.LoginInteractor@16f8b08 from other thread
Anyone can help?
s
Sam
03/25/2019, 6:41 PM
It's a threading issue. You either need to use the main queue or freeze the objects you're sending into the global queue.
m
mben
03/25/2019, 6:59 PM
Hello @Sam, i’ve tried to use @SharedImmutable inside my kotlin native code for all my objects but still the same error
s
Sam
03/25/2019, 7:07 PM
Try freezing the closure you're sending to the dispatch queue before sending it.
m
mben
03/25/2019, 7:13 PM
Ok thank you, i will try tomorow and tell you it works
mben
03/26/2019, 3:22 PM
Hello back from testing, couldn't find a way to make it work 😕 my code in shared module looks like this: