Make the documentation less worker-threads centric. (#183)
[poolifier.git] / src / pools / cluster / dynamic.ts
index aa883bfa194afd50f3b68ffaee40dbbd5096ca1b..d71abd01a6c52dfd8b7045f45c01f183b0b93715 100644 (file)
@@ -25,16 +25,16 @@ export class DynamicClusterPool<
    *
    * @param min Minimum number of workers which are always active.
    * @param max Maximum number of workers that can be created by this pool.
-   * @param filename Path to an implementation of a `ClusterWorker` file, which can be relative or absolute.
-   * @param opts Options for this fixed cluster pool. Default: `{ maxTasks: 1000 }`
+   * @param filePath Path to an implementation of a `ClusterWorker` file, which can be relative or absolute.
+   * @param opts Options for this dynamic cluster pool. Default: `{ maxTasks: 1000 }`
    */
   public constructor (
     min: number,
     public readonly max: number,
-    filename: string,
+    filePath: string,
     opts: ClusterPoolOptions = { maxTasks: 1000 }
   ) {
-    super(min, filename, opts)
+    super(min, filePath, opts)
   }
 
   /**