WorkerProxy<T> Type

WorkerProxy = WorkerInterface<T> & { isTerminated: boolean, terminate: }

A proxy for a web worker that provides the operations specified by the methods of T. To use a worker proxy, define a worker script that provides registerWorker with an implementation of T, and obtain a proxy via createWorkerProxy on the main thread. The proxy can then be used to asynchronously invoke methods of T on the worker. See this article for more details and examples.

Defined in

Last Updated: 28 October, 2024