Module tokio_with_wasm::task

source ·
Expand description

Asynchronous green-threads.

Resembling the familiar tokio::task patterns. this module 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.