-import type { PoolOptions } from '../pool'
-import { PoolType } from '../pool'
-import type { ThreadWorkerWithMessageChannel } from './fixed'
-import { FixedThreadPool } from './fixed'
+import { type PoolOptions, type PoolType, PoolTypes } from '../pool'
+import { FixedThreadPool, type ThreadWorkerWithMessageChannel } from './fixed'
/**
* A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.
/** @inheritDoc */
public get type (): PoolType {
- return PoolType.DYNAMIC
+ return PoolTypes.dynamic
}
/** @inheritDoc */
}
/** @inheritDoc */
- public get size (): number {
+ protected get maxSize (): number {
return this.max
}