arrow-fx-coroutines / arrow.fx.coroutines / AtomicRefW

AtomicRefW

class AtomicRefW<A>

Constructors

<init> AtomicRefW(a: A)

Properties

value var value: A

Functions

compareAndSet fun compareAndSet(expect: A, update: A): Boolean
getAndSet fun getAndSet(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
<