perf: drastically reduce worker nodes array lookups
[poolifier.git] / src / pools / pool.ts
index 4a0ab725adbaaa5cb08a5740ba195663b554270f..207a8598e3bb9d401ca653eee8b232b4f8f52ee7 100644 (file)
@@ -64,7 +64,7 @@ export interface PoolInfo {
   readonly strategy: WorkerChoiceStrategy
   readonly minSize: number
   readonly maxSize: number
-  /** Pool utilization ratio. */
+  /** Pool utilization. */
   readonly utilization?: number
   /** Pool total worker nodes. */
   readonly workerNodes: 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>
   /**