Crate wasm_rs_shared_channel

Crate wasm_rs_shared_channel 

Source
Expand description

§Shared Channel for WebAssembly

This crate provides a way for WebAssembly threads to receive messages from other threads using a JavaScript primitive called SharedArrayBuffer which allows to share memory and use atomics between different threads.

This allows us to deploy Rust code as a worker process communicating with the main thread.

Modules§

spsc
Single Publisher Single Consumer Channel

Structs§

Expects
Shareable::from indicates that it needs at least n bytes to proceed

Traits§

Shareable
Any type that can be sent through a shared channel must implement this