-import { isMainThread, MessageChannel, SHARE_ENV, Worker } from 'worker_threads'
+import {
+ isMainThread,
+ MessageChannel,
+ SHARE_ENV,
+ Worker
+} from 'node:worker_threads'
import type { Draft, MessageValue } from '../../utility-types'
import { AbstractPool } from '../abstract-pool'
import type { PoolOptions } from '../pool'
return PoolType.FIXED
}
+ /** {@inheritDoc} */
+ public get full (): boolean {
+ return this.workers.length === this.numberOfWorkers
+ }
+
/** {@inheritDoc} */
public get busy (): boolean {
- return this.internalGetBusyStatus()
+ return this.internalBusy()
}
}