xref: /aosp_15_r20/external/kotlinx.atomicfu/atomicfu/npm/README.md (revision 68017707106cb9da9fed635c150bc497c09c160f)
1# kotlinx.atomicfu
2
3The idiomatic way to use atomic operations in [Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html),
4so that the same code can be shared with Kotlin/JVM.
5
6```kotlin
7private val top = atomic<Node?>(null)
8```
9
10See [README](https://github.com/Kotlin/kotlinx.atomicfu/blob/master/README.md) for more details.
11