Hi all i am integrating `KMP-NativeCoroutines` on...
# multiplatform
b
Hi all i am integrating
KMP-NativeCoroutines
on ios i am having the following error when accessing ant suspend of flow function
Copy code
Uncaught Kotlin exception: kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlinx.coroutines.StandaloneCoroutine
k
You’ll either need the new memory model or the native-mt branch of coroutines. I don’t know if recent versions of
KMP-NativeCoroutines
still supports the native-mt branch (and you should probably use the new model anyway)
👆🏻 1
b
@kpgalligan thanks
r
By default KMP-NativeCoroutines uses the native-mt branch. You can use the
-new-mm
versions with the new memory model. Like @kpgalligan mentioned you should probably start using the new model. Support for the old model will likely be dropped with Kotlin 1.7.
👍 1
b
i added
kotlin.native.binary.memoryModel=experimental
to
gradle.propertie
it solved the issue
👍🏻 1