X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Fdynamic.ts;h=56b923c4d2cd0f4c3800aba0b24abd41f83b4799;hb=ace229a1b5029d3acaeeb4e8abdab415de5318f1;hp=bb177f876c79893b582989d67067b4ec448b2549;hpb=56960396878dec81e3ebeea5b76387efca8cc2dc;p=poolifier.git diff --git a/src/pools/thread/dynamic.ts b/src/pools/thread/dynamic.ts index bb177f87..56b923c4 100644 --- a/src/pools/thread/dynamic.ts +++ b/src/pools/thread/dynamic.ts @@ -45,6 +45,11 @@ export class DynamicThreadPool< return this.workerNodes.length === this.max } + /** @inheritDoc */ + public get size (): number { + return this.max + } + /** @inheritDoc */ protected get busy (): boolean { return this.full && this.internalBusy()