Gets the error state of the terminated worker.
A string or Error
that describes the error state of the current worker; undefined
if the
current worker was forcibly terminated via WorkerLike.terminate().
Gets the current worker state.
A WorkerStateFlags value that describes the current state of the worker.
Invoked when the current worker is started to create the internal worker thread based on the current runtime.
Sends a message to the worker.
The data that should be posted to the current worker.
A Promise
that resolves once data
has been successfuly sent to the worker.
Starts the current worker.
A Promise
that resolves when the current worker has completed executing.
Signals the current worker to terminate immediately.
Waits until the current worker has completed executing.
A Promise
that resolves when the current worker has completed executing.
Generated using TypeDoc
Represents a worker that delegates internally to a worker thread that is created specifically for the current runtime.