import type { PoolOptions } from '../abstract-pool'
import type { ThreadWorkerWithMessageChannel } from './fixed'
import { FixedThreadPool } from './fixed'
import type { PoolOptions } from '../abstract-pool'
import type { ThreadWorkerWithMessageChannel } from './fixed'
import { FixedThreadPool } from './fixed'
*
* @param min Minimum number of threads which are always active.
* @param max Maximum number of threads that can be created by this pool.
*
* @param min Minimum number of threads which are always active.
* @param max Maximum number of threads that can be created by this pool.
- * @param filename Path to an implementation of a `ThreadWorker` file, which can be relative or absolute.
- * @param opts Options for this fixed thread pool. Default: `{ maxTasks: 1000 }`
+ * @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 }`
const workerCreated = this.createAndSetupWorker()
this.registerWorkerMessageListener<Data>(workerCreated, message => {
const tasksInProgress = this.tasks.get(workerCreated)
const workerCreated = this.createAndSetupWorker()
this.registerWorkerMessageListener<Data>(workerCreated, message => {
const tasksInProgress = this.tasks.get(workerCreated)