Expand description
async_wasm_task is a Rust library that enables
seamless integration of asynchronous Rust tasks
and Futures in JavaScript,
resembling the familiar tokio::task patterns.
It leverages web workers to execute tasks in parallel,
making it ideal for high-performance web applications.
Structs§
- Join
Error - Returned when a task failed to execute to completion.
- Join
Handle - An owned permission to join on a task (awaiting its termination).
Functions§
- spawn
- Spawns a new asynchronous task, returning a
JoinHandlefor it. - spawn_
blocking - Runs the provided closure on a web worker(thread) where blocking is acceptable.
- yield_
now - Yields execution back to the JavaScript event loop.