1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! 
//! 
//! 
//!
//! A Worker based multithreading library for Rust and WebAssembly.
//!
//! This uses the WebAssembly [threads proposal](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md)
//! and shared memory to communicate between workers (once they are started), instead of `postMessage`.
//! The threads proposal is currently in [phase 4](https://webassembly.org/features/) and available in all major browsers and runtimes.
//!
//! This library will remain on version 0.0.x until all features required are in stable Rust, standardized in WASM, and baseline widely available across browsers.
//!
//! To get started using this library, please refer to the [book](https://wbgspawn.pistonite.dev).
//! The [Playground](https://wbgspawn-playground.pistonite.dev) also has runnable examples.
compile_error!;
pub use ;
pub use ;
/// The worker thread's runtime, which contains wrappers for handling panics
pub use spawn_local;
/// Interop with JS