Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

InkApplications/Subatomic

Repository files navigation

Subatomic

Simple Multiplatform implementation of atomic operations for Kotlin.

  • Supports JVM, JavaScript and Native Platforms.
  • Does not require use of a gradle plugin.

Installation

Published to Maven Central

Core Module Coordinates

com.inkapplications.subatomic:core

Usage

Create simple references with the Atomic class:

val atomicString = Atomic("example")

atomicString.getAndUpdate { current ->
    "Previously $current"
}

Works with Nullable references:

val atomicNullable = Atomic<Int?>(null)

About

⚛️ Multiplatform implementations of atomic operations for Kotlin.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages