Atomic boolean. (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.
Static methods
staticcompareExchange(this:AtomicBool, expected:Bool, replacement:Bool):Bool
Atomically compares the value of a
with expected
and replaces a
with replacement
if they are equal..
Returns the original value of a
.
staticexchange(this:AtomicBool, value:Bool):Bool
Atomically exchanges a
with value
.
Returns the original value of a
.
staticstore(this:AtomicBool, value:Bool):Bool
Atomically stores value
into a
.
Returns the value that has been stored.