X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fthread%2Ffixed.ts;h=41fcee2b60c2c5a36b5f24bc35d1cdce4a03c326;hb=80662c0aec09419d198a5daba024674922ca5945;hp=570c9c8b7f3ed718aaf2309b41e8b8486477d423;hpb=65d7a1c9177d558c01570f4013b7aa23bbee952d;p=poolifier.git diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index 570c9c8b..41fcee2b 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -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