Subatomic: core

Simple Multiplatform atomic references.

License

License

MIT
GroupId

GroupId

com.inkapplications.subatomic
ArtifactId

ArtifactId

core-linuxx64
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

klib
Description

Description

Subatomic: core
Simple Multiplatform atomic references.
Project URL

Project URL

https://github.com/inkapplications/subatomic
Source Code Management

Source Code Management

https://github.com/InkApplications/subatomic

Download core-linuxx64

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.5.0

Project Modules

There are no modules declared in this project.

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)
com.inkapplications.subatomic

Ink Applications

Open source developer tools and web services.

Versions

Version
1.1.0