# 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(null)
```

See [README](https://github.com/Kotlin/kotlinx.atomicfu/blob/master/README.md) for more details.