X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Fdynamic.ts;h=7bf477dd837c0ce3e30cb65ad308c32ca0774f48;hb=aec509b85e7d73e9883c8885e27fc4e34fdaef1e;hp=0f901f7fdfc674b3c7761db870cf3ae29358c6ef;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/src/pools/thread/dynamic.ts b/src/pools/thread/dynamic.ts index 0f901f7f..7bf477dd 100644 --- a/src/pools/thread/dynamic.ts +++ b/src/pools/thread/dynamic.ts @@ -41,12 +41,12 @@ export class DynamicThreadPool< } /** @inheritDoc */ - public get full (): boolean { + protected get full (): boolean { return this.workerNodes.length === this.max } /** @inheritDoc */ - public get busy (): boolean { + protected get busy (): boolean { return this.full && this.internalBusy() } }