can AtomicLong be used in KMP common code? From the docs it seems that it's only available for 'native' but I would expect to be able to use it also for Android/JVM with a typealias of the JVM implementation
a
Arkadii Ivanov
06/29/2023, 10:03 AM
I believe it can't. You could either define your own expect/actual, or use a library.
m
mkrussel
06/29/2023, 11:19 AM
atomic-fu is the Kotlin provided library for cross platform atomics.