js_sys::Atomics

Function wait_async_with_timeout

source
pub fn wait_async_with_timeout(
    typed_array: &Int32Array,
    index: u32,
    value: i32,
    timeout: f64,
) -> Result<Object, JsValue>
Expand description

Like waitAsync(), but with timeout

You should use wait_async_with_timeout_bigint to operate on a BigInt64Array.

MDN documentation