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:AtomicBoolData, 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:AtomicBoolData, value:Bool):Bool

Atomically exchanges a with value. Returns the original value of a.

staticload(this:AtomicBoolData):Bool

Atomically fetches the value of a.

staticstore(this:AtomicBoolData, value:Bool):Bool

Atomically stores value into a. Returns the value that has been stored.