X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIWorkerNode.html;h=2dd42be27714a254bf23f4877ebf54a7cacf8cbb;hb=b9da9d7e74c720f83482a09d1b883fc83d04f4ed;hp=5bba3f71f291f084b376cacddbbd76f1bfb4663f;hpb=52f4e8137eab5d72c663eb9ae9289c08d804e559;p=poolifier.git diff --git a/docs/interfaces/IWorkerNode.html b/docs/interfaces/IWorkerNode.html index 5bba3f71..2dd42be2 100644 --- a/docs/interfaces/IWorkerNode.html +++ b/docs/interfaces/IWorkerNode.html @@ -1,4 +1,4 @@ -
Readonly
closeCloses communication channel.
+Readonly
dequeueReadonly
enqueueWorker node enqueue task.
+Enqueue task.
The task to queue.
-The task queue size.
+The tasks queue size.
-Readonly
getReadonly
getWorker node get tasks usage statistics.
+Gets task function worker usage statistics.
The task function name.
+The task function worker usage statistics if the task function worker usage statistics are initialized, undefined
otherwise.
Readonly
hasWhether the worker node has back pressure (i.e. its tasks queue is full).
+true
if the worker node has back pressure, false
otherwise.
Readonly
infoWorker node worker info.
+Worker info.
Optional
Readonly
messageMessage channel (worker_threads only).
+Optional
onCallback invoked when worker node tasks queue is back pressured.
+The worker id.
+Optional
onCallback invoked when worker node tasks queue is empty.
+The worker id.
+Readonly
popReadonly
resetWorker node reset usage statistics .
+Resets usage statistics.
Tasks queue back pressure size. +This is the number of tasks that can be enqueued before the worker node has back pressure.
+Readonly
tasksWorker node tasks queue size.
+Tasks queue size.
The tasks queue size.
Readonly
unshiftPrepends a task to the tasks queue.
+The task to prepend.
+The tasks queue size.
+ +Worker node worker usage statistics.
+Worker usage statistics.
Readonly
workerWorker node worker.
+Worker.
Generated using TypeDoc
Generated using TypeDoc
Worker node clear tasks queue.
+Clears tasks queue.
Returns void