X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fworker.ts;h=d9dd43865bf6d36cb7d4bb6ce808eccf3528a7c8;hb=c62d6d8877008cce9408998b824794b86bfe0a2d;hp=3c44f05eae148883c5c83f91304f894d2297e5fc;hpb=2809112e53951451aeb76e86a2dcc263ba80e43c;p=poolifier.git diff --git a/src/pools/worker.ts b/src/pools/worker.ts index 3c44f05e..d9dd4386 100644 --- a/src/pools/worker.ts +++ b/src/pools/worker.ts @@ -243,13 +243,13 @@ export interface IWorkerNode { */ 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 /** - * Resets usage statistics . + * Resets usage statistics. */ readonly resetUsage: () => void /** @@ -262,5 +262,5 @@ export interface IWorkerNode { * @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 getTaskFunctionWorkerUsage: (name: string) => WorkerUsage | undefined }