Cloudflare DevelopersCD
Cloudflare Developers7mo ago
6 replies
FrozenFire

Worker-based threading

Can I instantiate
Worker
within the context of a worker? I'm attempting to shim a Rust wasm worker to support
web-spawn
(https://github.com/tlsnotary/tlsn-utils/blob/dev/web-spawn/js/spawn.no-bundler.js), which is a refactored version of wasm-bindgen-rayon.

The WASM I'm building depends heavily on "threading", but it will likely work to simulate it with the workerd global event loop.
Was this page helpful?