devela::_dep::web_sys::js_sys::Atomics

Function is_lock_free

Source
pub fn is_lock_free(size: u32) -> bool
Available on crate feature dep_web_sys only.
Expand description

The static Atomics.isLockFree() method is used to determine whether to use locks or atomic operations. It returns true, if the given size is one of the BYTES_PER_ELEMENT property of integer TypedArray types.

MDN documentation