Class WebWorker<RequestType, ResultType>
Constructors
constructor
- new WebWorker<RequestType, ResultType>(workerFunction: WorkerFunction<RequestType, ResultType>): WebWorker<RequestType, ResultType>
-
Returns WebWorker<RequestType, ResultType>
Methods
free
- free(): void
-
Returns void
postMessage
- postMessage(message: RequestType): Promise<ResultType>
-
Returns Promise<ResultType>