Crate wasmworker

Source

Re-exports§

Modules§

Macros§

  • This macro safely instantiates a WebWorkerFn instance to be passed to a crate::WebWorker. It ensures that the function is exposed via the #[webworker_fn] procedural macro.

Structs§

  • This struct represents a single web worker instance. It can be created using WebWorker::new or WebWorker::with_path. When an instance of this type is dropped, it also terminates the corresponding web worker.

Functions§

  • This function can be called before the first use of the global worker pool to configure it. It takes a WorkerPoolOptions configuration object. Note that this function is async.
  • This function accesses the default worker pool. If init_worker_pool has not been manually called, this function will initialize the worker pool prior to returning it.