mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 22:22:12 +00:00
17 lines
464 B
Rust
17 lines
464 B
Rust
|
use js_sys::{Int32Array, Promise, SharedArrayBuffer};
|
||
|
use wasm_bindgen::prelude::*;
|
||
|
|
||
|
#[wasm_bindgen(module = "/src/polyfill.js")]
|
||
|
extern "C" {
|
||
|
#[wasm_bindgen(js_name = waitAsync)]
|
||
|
pub fn wait_async(indexed_array: Int32Array, index: u32, value: i32) -> Promise;
|
||
|
|
||
|
#[wasm_bindgen(js_name = waitAsync)]
|
||
|
pub fn wait_async_with_timeout(
|
||
|
indexed_array: Int32Array,
|
||
|
index: u32,
|
||
|
value: i32,
|
||
|
timeout: f64,
|
||
|
) -> Promise;
|
||
|
}
|