Name Description Size Coverage
GeneratePromiseWorkerScript.py 2084 -
moz.build 714 -
PromiseWorker.template.worker.js A wrapper around `self` with extended capabilities designed to simplify main thread-to-worker thread asynchronous function calls. This wrapper: - groups requests and responses as a method `post` that returns a `Promise`; - ensures that exceptions thrown on the worker thread are correctly serialized; - provides some utilities for benchmarking various operations. Generally, you should use PromiseWorker.js or PromiseWorker.mjs along with its main thread-side counterpart PromiseWorker.sys.mjs. 8572 -