Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* - '`destroy`': Emitted when the pool is destroyed.
* - `'error'`: Emitted when an uncaught error occurs.
* - `'taskError'`: Emitted when an error occurs while executing a task.
+ * - `'backPressure'`: Emitted when a worker node has back pressure (i.e. its tasks queue is full).
*/
readonly emitter?: PoolEmitter
/**
*/
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
}