Atomic boolean. (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.

Static methods

@:noExprstaticcompareExchange(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.

@:noExprstaticexchange(this:AtomicBool, value:Bool):Bool

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

@:noExprstaticload(this:AtomicBool):Bool

Atomically fetches the value of a.

@:noExprstaticstore(this:AtomicBool, value:Bool):Bool

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