X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Finterfaces%2FIWorkerNode.html;h=8ca8426f69eb912f32deaafb6e71a1e66be6eb7f;hb=4cb259d3e1837759b8bac901d3755f1610b5ddc4;hp=ebd0f4a3ba3dd73ef33e64eb3db0afe854ff382d;hpb=a25c335d7e5573a171fc96c445cb6092852b2c4a;p=poolifier.git diff --git a/docs/interfaces/IWorkerNode.html b/docs/interfaces/IWorkerNode.html index ebd0f4a3..8ca8426f 100644 --- a/docs/interfaces/IWorkerNode.html +++ b/docs/interfaces/IWorkerNode.html @@ -1,13 +1,13 @@ -
Readonly
clearReadonly
clearReadonly
closeReadonly
dequeueReadonly
enqueueReadonly
getReadonly
hasReadonly
infoOptional
Readonly
messageOptional
strategyWorker choice strategy data. +This is used to store data that is specific to the worker choice strategy.
+Tasks queue back pressure size. +This is the number of tasks that can be enqueued before the worker node has back pressure.
+Readonly
tasksTasks queue size.
Readonly
unshiftPrepends a task to the tasks queue.
+The task to prepend.
+The tasks queue size.
+ +Readonly
usageWorker usage statistics.
Readonly
workerGenerated using TypeDoc
Generated using TypeDoc
+ \ No newline at end of file
Message channel.
+Message channel (worker_threads only).
Back Pressure
+Optional
onCallback invoked when worker node tasks queue is back pressured.
+ Empty Queue
+Optional
onCallback invoked when worker node tasks queue is empty.
+ Task
+Readonly
popType declaration
++-
+
+- (): undefined | Task<Data>
+-
+
+
Pops a task from the tasks queue.
+Returns undefined | Task<Data>
The popped task.
+ +Readonly
reset-- (): void
+- (): void
-
Resets usage statistics.
Returns void