Are there any plans to make `.freeze()` a common f...
# kotlin-native
m
Are there any plans to make
.freeze()
a common function so that I don’t have to add my own multiplatform implementations in every single multiplatform library that I create?
5
a
You can use the tiny
utils
module from Reaktive. It brings all set of Atomics and useful extensions, as well as Lock and Condition. And of course the
freeze
,
ensureNeverFrozen
and
isFrozen
extensions. It is published separately. https://github.com/badoo/Reaktive/tree/master/utils/src/commonMain/kotlin/com/badoo/reaktive/utils
m
Thanks, but I prefer to not add a dependency just for a single basic function 😅
☝️ 2