X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIWorker.html;h=a6ece1fa3c0ec88fcb066c16592c5bb2afb3539f;hb=40d04d55ce29490e98226cfe968df9502755782d;hp=fd827e70bb387e0fd9b2903ae501567620d9ead9;hpb=bd904ec278545cbbdc173c97bf29cc0314e33ca0;p=poolifier.git diff --git a/docs/interfaces/IWorker.html b/docs/interfaces/IWorker.html index fd827e70..a6ece1fa 100644 --- a/docs/interfaces/IWorker.html +++ b/docs/interfaces/IWorker.html @@ -1,5 +1,5 @@ -
Worker interface.
+Optional
Readonly
disconnectCluster worker disconnect.
-Optional
Readonly
idCluster worker id.
-Optional
Readonly
killCluster worker kill.
-Optional
signal: stringReadonly
onRegisters an event handler.
+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.
+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. +
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.
-Optional
Readonly
unrefCalling unref()
on a worker allows the thread to exit if this is the only
+
Optional
Readonly
threadWorker thread worker id.
+Optional
Readonly
unrefCalling unref()
on a worker allows the thread to exit if this is the only
active handle in the event system. If the worker is already unref()
ed callingunref()
again has no effect.
v10.5.0
-Optional
[captureRest
...args: AnyRestAlias for emitter.on(eventName, listener)
.
Optional
[captureRest
...args: AnyRestAlias for emitter.on(eventName, listener)
.
Rest
...args: any[]v0.1.26
Synchronously calls each of the listeners registered for the event named eventName
, in the order they were registered, passing the supplied arguments
to each.
emitter.setMaxListeners()
method allows the limit
modified for this specific EventEmitter
instance. The value can be set to Infinity
(or 0
) to indicate an unlimited number of listeners.
Returns a reference to the EventEmitter
, so that calls can be chained.
v0.3.5
-
Worker interface.
-