repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.6.29
[poolifier.git]
/
src
/
pools
/
worker.ts
diff --git
a/src/pools/worker.ts
b/src/pools/worker.ts
index cd395bbdd0301948937bc7c1ba06d3f2f68d540f..d9dd43865bf6d36cb7d4bb6ce808eccf3528a7c8 100644
(file)
--- a/
src/pools/worker.ts
+++ b/
src/pools/worker.ts
@@
-243,13
+243,13
@@
export interface IWorkerNode<Worker extends IWorker, Data = unknown> {
*/
readonly clearTasksQueue: () => void
/**
*/
readonly clearTasksQueue: () => void
/**
- * Whether the worker node has back pressure.
+ * Whether the worker node has back pressure
(i.e. its tasks queue is full)
.
*
* @returns `true` if the worker node has back pressure, `false` otherwise.
*/
readonly hasBackPressure: () => boolean
/**
*
* @returns `true` if the worker node has back pressure, `false` otherwise.
*/
readonly hasBackPressure: () => boolean
/**
- * Resets usage statistics
.
+ * Resets usage statistics.
*/
readonly resetUsage: () => void
/**
*/
readonly resetUsage: () => void
/**
@@
-257,7
+257,10
@@
export interface IWorkerNode<Worker extends IWorker, Data = unknown> {
*/
readonly closeChannel: () => void
/**
*/
readonly closeChannel: () => void
/**
- * Gets task worker usage statistics.
+ * Gets task function worker usage statistics.
+ *
+ * @param name - The task function name.
+ * @returns The task function worker usage statistics if the task function worker usage statistics are initialized, `undefined` otherwise.
*/
*/
- readonly getTaskWorkerUsage: (name: string) => WorkerUsage | undefined
+ readonly getTask
Function
WorkerUsage: (name: string) => WorkerUsage | undefined
}
}