firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Database transactions

Open michaelprichardson opened this issue 4 years ago • 3 comments
trafficstars

michaelprichardson avatar Jul 08 '21 13:07 michaelprichardson

~~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~~

pauminku avatar Jul 16 '22 16:07 pauminku

~~I think to make this work on iOS we'll need to freeze the callback blocks: https://youtrack.jetbrains.com/issue/KT-43566~~

pauminku avatar Jul 18 '22 08:07 pauminku

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

Reedyuk avatar Jul 18 '22 08:07 Reedyuk