Function js_sys::Atomics::wait_bigint
source · pub fn wait_bigint(
typed_array: &Int32Array,
index: u32,
value: i64
) -> Result<JsString, JsValue>
Expand description
The static Atomics.wait()
method verifies that a given
position in an Int32Array
still contains a given value
and if so sleeps, awaiting a wakeup or a timeout.
It returns a string which is either “ok”, “not-equal”, or “timed-out”.
Note: This operation only works with a shared Int32Array
and may not be allowed on the main thread.
This method is used to operate on a BigInt64Array
or a BigUint64Array
.