arrow-fx / arrow.fx.internal / AtomicRefW

AtomicRefW

class ~~AtomicRefW~~<A> Deprecated: The IO datatype and it’s related type classes will disappear in Arrow 0.13.0. All useful operations are offered directly over suspend functions by Arrow Fx Coroutines. https://arrow-kt.io/docs/fx/async/

Internal wrapper for Atomic-FU Atomics to be used as local variables

Constructors

<init> Internal wrapper for Atomic-FU Atomics to be used as local variablesAtomicRefW(a: A)

Properties

value var value: A

Functions

compareAndSet fun compareAndSet(expect: A, update: A): Boolean
getAndSet fun getAndSet(a: A): A
getAndUpdate fun getAndUpdate(f: (A) -> A): A
lazySet fun lazySet(a: A): Unit
toString fun toString(): String
updateAndGet fun updateAndGet(function: (A) -> A): A

Do you like Arrow?

Arrow Org
<