Bump typedoc from 0.20.31 to 0.20.32 (#273)
[poolifier.git] / src / pools / thread / fixed.ts
index 6fec9aa04db6af79c7eac3deae91d09b4d311cd4..abd1b6b8b081ac2740ac96ea6a1265a690ff407b 100644 (file)
@@ -2,6 +2,7 @@ import { isMainThread, MessageChannel, SHARE_ENV, Worker } from 'worker_threads'
 import type { Draft, MessageValue } from '../../utility-types'
 import type { PoolOptions } from '../abstract-pool'
 import { AbstractPool } from '../abstract-pool'
+import { PoolType } from '../pool-internal'
 
 /**
  * A thread worker with message channels for communication between main thread and thread worker.
@@ -81,4 +82,14 @@ export class FixedThreadPool<
     // Listen worker messages.
     this.registerWorkerMessageListener(worker, super.workerListener())
   }
+
+  /** @inheritdoc */
+  public get type (): PoolType {
+    return PoolType.FIXED
+  }
+
+  /** @inheritdoc */
+  public get busy (): boolean {
+    return this.internalGetBusyStatus()
+  }
 }