Optional
Readonly
disconnectCluster worker disconnect.
Optional
Readonly
idCluster worker id.
Optional
Readonly
killCluster worker kill.
Optional
signal: stringReadonly
onRegisters an event handler.
The event.
The event handler.
Readonly
onceRegisters once an event handler.
The event.
The event handler.
Optional
Readonly
terminateStop all JavaScript execution in the worker thread as soon as possible.
Returns a Promise for the exit code that is fulfilled when the 'exit' event
is emitted.
Optional
Readonly
threadWorker thread worker id.
Generated using TypeDoc
Worker interface.