import { type PoolType, PoolTypes } from '../pool'
+import { checkDynamicPoolSize } from '../utils'
import { FixedThreadPool, type ThreadPoolOptions } from './fixed'
/**
opts: ThreadPoolOptions = {}
) {
super(min, filePath, opts)
+ checkDynamicPoolSize(this.numberOfWorkers, this.max)
}
/** @inheritDoc */
return PoolTypes.dynamic
}
- /** @inheritDoc */
- protected get maxSize (): number {
- return this.max
- }
-
/** @inheritDoc */
protected get busy (): boolean {
return this.full && this.internalBusy()