firebase-kotlin-sdk
firebase-kotlin-sdk copied to clipboard
Database transactions
~~Should this PR work on iOS? I'm getting this error: Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared <object>@xxxx from other thread~~
~~I think to make this work on iOS we'll need to freeze the callback blocks: https://youtrack.jetbrains.com/issue/KT-43566~~
I think to make this work on iOS we'll need to freeze the callback blocks: https://youtrack.jetbrains.com/issue/KT-43566
I wouldnt freeze it, you should be able to enable the new memory model and disable freezing.
https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md
kotlin.native.binary.memoryModel=experimental
kotlin.native.binary.freezing=disabled
Freezing will be deprecated in future version of Kotlin