X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fthread%2Ffixed.ts;h=2c4f66f0ff4d8be12d192f4028b1b1a17262bbc7;hb=b2b1d84ebeb8299fda9b6090c9951e953749bbe0;hp=a37ccbf76b5864b8cc4f27b847596d7b9c533d38;hpb=fc3e65861bc1939ae047ee1e8e91a1ce577035f4;p=poolifier.git diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index a37ccbf7..2c4f66f0 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -96,8 +96,13 @@ export class FixedThreadPool< 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() } }