import { checkDynamicPoolSize } from '../utils'
-import { type PoolType, PoolTypes } from '../pool'
+import { PoolEvents, type PoolType, PoolTypes } from '../pool'
import { type ClusterPoolOptions, FixedClusterPool } from './fixed'
/**
return !this.full && this.internalBusy()
}
+ /** @inheritDoc */
+ protected checkAndEmitDynamicWorkerCreationEvents (): void {
+ if (this.full) {
+ this.emitter?.emit(PoolEvents.full, this.info)
+ }
+ }
+
/** @inheritDoc */
protected get type (): PoolType {
return PoolTypes.dynamic