build(deps-dev): apply updates
[poolifier.git] / src / pools / thread / fixed.ts
index 7753d1d60cb21910a5f871338889023ef4de12c1..41fcee2b60c2c5a36b5f24bc35d1cdce4a03c326 100644 (file)
@@ -1,8 +1,8 @@
 import {
-  isMainThread,
   MessageChannel,
   SHARE_ENV,
-  Worker
+  Worker,
+  isMainThread
 } from 'node:worker_threads'
 import type { Draft, MessageValue } from '../../utility-types'
 import { AbstractPool } from '../abstract-pool'
@@ -96,6 +96,11 @@ export class FixedThreadPool<
     return PoolType.FIXED
   }
 
+  /** @inheritDoc */
+  public get size (): number {
+    return this.numberOfWorkers
+  }
+
   /** @inheritDoc */
   protected get full (): boolean {
     return this.workerNodes.length === this.numberOfWorkers