type
AtomicBool
src
@Js
const class AtomicBool : Obj
AtomicBool is used to manage a boolean variable shared between actor/threads with atomic updates.
constructors
make |
Construct with initial value |
---|
fields
val |
The current boolean value |
---|
methods
compareAndSet |
Atomically set the value to |
---|---|
getAndSet |
Atomically set the value and return the previous value. |
toStr |
Return |