Crate async_wasm_task
source ·Expand description
async_wasm_task
is a Rust library that enables
seamless integration of asynchronous Rust tasks
and Future
s 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
- Returned when a task failed to execute to completion.
- An owned permission to join on a task (awaiting its termination).
Functions
- Spawns a new asynchronous task, returning a
JoinHandle
for it. - Runs the provided closure on a web worker(thread) where blocking is acceptable.
- Yields execution back to the JavaScript event loop.