Removed max tasks (#225)
[poolifier.git] / src / pools / thread / dynamic.ts
index fcf4b2ff4652b58b3050adbd46153d4b9ca2c10c..04125854e2f24e7bb6c1d058bb57fa953105eb35 100644 (file)
@@ -24,13 +24,13 @@ export class DynamicThreadPool<
    * @param min Minimum number of threads which are always active.
    * @param max Maximum number of threads that can be created by this pool.
    * @param filePath Path to an implementation of a `ThreadWorker` file, which can be relative or absolute.
-   * @param opts Options for this dynamic thread pool. Default: `{ maxTasks: 1000 }`
+   * @param opts Options for this dynamic thread pool. Default: `{}`
    */
   public constructor (
     min: number,
     public readonly max: number,
     filePath: string,
-    opts: PoolOptions<ThreadWorkerWithMessageChannel> = { maxTasks: 1000 }
+    opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
   ) {
     super(min, filePath, opts)
   }