| moz.build |
|
492 |
| PromiseWorker.sys.mjs |
A wrapper around ChromeWorker 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 deserialized;
- provides some utilities for benchmarking various operations.
Generally, you should use PromiseWorker.sys.mjs along with its worker-side
counterpart PromiseWorker.js.
|
14934 |
| tests |
|
|
| worker |
|
|