Function wait_with_timeout_bigint

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

Like wait(), but with timeout

You should use wait_with_timeout to operate on a Int32Array.

MDN documentation