Subatomic: core

Simple Multiplatform atomic references.

License

License

MIT
Categories

Categories

JavaScript Languages
GroupId

GroupId

com.inkapplications.subatomic
ArtifactId

ArtifactId

core-js
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

pom.sha512.sha512
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-js

Dependencies

compile (2)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-js jar 1.5.0
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