Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
/ Subatomic Public archive

⚛️ Multiplatform implementations of atomic operations for Kotlin.

License

Notifications You must be signed in to change notification settings

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

No packages published

Languages