HI all, I am receiving a String from HTTP request ...
# multiplatform
a
HI all, I am receiving a String from HTTP request in iOS, and it is created in background thread. I pass it to Kotlin MPP code as callback parameter and I get
IncorrectDereferenceException
. I read that this is due to thread mismatch that Kotrlin tries to access it from main thread but how to overcome it? I cannot obviously freeze a Swift-object. Should I freeze that String instance when received in Kotlin?