js-sys 0.3.95

Bindings for all JS global objects and functions in all JS environments like Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cfg_if::cfg_if;

cfg_if! {
    if #[cfg(target_feature = "atomics")] {
        mod wait_async_polyfill;
        mod multithread;
        pub(crate) use multithread::*;

    } else {
        mod singlethread;
        pub(crate) use singlethread::*;
     }
}