import type { IPoolInternal } from '../pool-internal'
-import { PoolType } from '../pool-internal'
import type { IPoolWorker } from '../pool-worker'
import type {
IWorkerChoiceStrategy,
*/
public execute (): number {
if (
- this.pool.type === PoolType.DYNAMIC &&
+ this.workerChoiceStrategy.isDynamicPool &&
!this.pool.full &&
this.pool.findFreeWorkerKey() === -1
) {