Hi there. I’m using kotlin-multiplatform to create...
# kotlin-native
l
Hi there. I’m using kotlin-multiplatform to create a library, compiled to a jvm target (Android) and kotlin-native target (ios). On the native side (on iOS), I’m trying to use the kotlin code as a traditionnal mobile library (“injecting” the stuff in a ViewController and calling it from a background thread). I’m getting an IncorrectDereferenceException when calling my kotlin object from the background. I’ve found and read the IMMUTABILITY.md and CONCURRENCY.md but it doesn’t help me understand what I have to do to make my code work. Could I get any hints from you ? This is the kind of code I’m writing (simplified)
t
Freeze lambda before passing to queue