Function js_sys::Atomics::wait_with_timeout

source ยท
pub fn wait_with_timeout(
    typed_array: &Int32Array,
    index: u32,
    value: i32,
    timeout: f64,
) -> Result<JsString, JsValue>
Expand description

Like wait(), but with timeout

You should use wait_with_timeout_bigint to operate on a BigInt64Array.

MDN documentation