js_sys::Atomics

Function wait_with_timeout_bigint

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

Like wait(), but with timeout

You should use wait_with_timeout to operate on a Int32Array.

MDN documentation