sycamore::web::js_sys::Atomics

Function 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