feat: add dynamic pool sizes type check
[poolifier.git] / src / pools / pool.ts
index 881ea62a04d0ffba4fe6d30de4bd30827c1719dd..207a8598e3bb9d401ca653eee8b232b4f8f52ee7 100644 (file)
@@ -64,13 +64,13 @@ export interface PoolInfo {
   readonly strategy: WorkerChoiceStrategy
   readonly minSize: number
   readonly maxSize: number
-  /** Pool utilization ratio. */
+  /** Pool utilization. */
   readonly utilization?: number
-  /** Pool total worker nodes */
+  /** Pool total worker nodes. */
   readonly workerNodes: number
-  /** Pool idle worker nodes */
+  /** Pool idle worker nodes. */
   readonly idleWorkerNodes: number
-  /** Pool busy worker nodes */
+  /** Pool busy worker nodes. */
   readonly busyWorkerNodes: number
   readonly executedTasks: number
   readonly executingTasks: number
@@ -198,7 +198,7 @@ export interface IPool<
    */
   readonly execute: (data?: Data, name?: string) => Promise<Response>
   /**
-   * Terminates every current worker in this pool.
+   * Terminates all workers in this pool.
    */
   readonly destroy: () => Promise<void>
   /**