sycamore::web::js_sys::Atomics

Function wait_bigint

source
pub fn wait_bigint(
    typed_array: &BigInt64Array,
    index: u32,
    value: i64,
) -> Result<JsString, JsValue>
Expand description

The static Atomics.wait() method verifies that a given position in an BigInt64Array 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 BigInt64Array and may not be allowed on the main thread.

You should use wait to operate on a Int32Array.

MDN documentation