android13/external/kotlinx.atomicfu/atomicfu/npm/README.md

11 lines
340 B
Markdown

# kotlinx.atomicfu
The idiomatic way to use atomic operations in [Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html),
so that the same code can be shared with Kotlin/JVM.
```kotlin
private val top = atomic<Node?>(null)
```
See [README](https://github.com/Kotlin/kotlinx.atomicfu/blob/master/README.md) for more details.