build(deps-dev): apply updates
[poolifier.git] / src / pools / pool.ts
index a0d3a9418cd6fd9632c5dec2ed382f2548822a57..e65cc115d2d77c0a0590fa5f936043b16dcb38d2 100644 (file)
@@ -178,6 +178,8 @@ export interface IPool<
   readonly info: PoolInfo
   /**
    * Pool worker nodes.
+   *
+   * @internal
    */
   readonly workerNodes: Array<IWorkerNode<Worker, Data>>
   /**
@@ -185,6 +187,7 @@ export interface IPool<
    *
    * @param workerNodeKey - The worker node key.
    * @returns `true` if the worker node has back pressure, `false` otherwise.
+   * @internal
    */
   readonly hasWorkerNodeBackPressure: (workerNodeKey: number) => boolean
   /**
@@ -198,7 +201,7 @@ export interface IPool<
    * - '`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).
+   * - `'backPressure'`: Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size \>= pool maximum size^2).
    */
   readonly emitter?: PoolEmitter
   /**