can <AtomicLong> be used in KMP common code? From ...
# multiplatform
d
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
I believe it can't. You could either define your own expect/actual, or use a library.
m
atomic-fu is the Kotlin provided library for cross platform atomics.
d
Cool, I'll try that one. Thanks!