fix: fix tasks usage initialization
[poolifier.git] / src / pools / abstract-pool.ts
index 9f7813e74cd7bd2579081ef9fd83facef0c59fdf..3be40e6d9cc8dd2634ab02569abd6261dca6f326 100644 (file)
@@ -506,6 +506,7 @@ export abstract class AbstractPool<
    * Gets the given worker its tasks usage in the pool.
    *
    * @param worker - The worker.
+   * @throws {@link Error} if the worker is not found in the pool worker nodes.
    * @returns The worker tasks usage.
    */
   private getWorkerTasksUsage (worker: Worker): TasksUsage | undefined {