super(min, filePath, opts, max)
checkDynamicPoolSize(
this.minimumNumberOfWorkers,
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- this.maximumNumberOfWorkers!
+ this.maximumNumberOfWorkers
)
}
/** @inheritDoc */
protected shallCreateDynamicWorker (): boolean {
- return !this.full && this.internalBusy()
+ return (!this.full && this.internalBusy()) || this.empty
}
/** @inheritDoc */