fix: ensure newly created worker is used only if needed
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 11 Jun 2023 22:07:22 +0000 (00:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 11 Jun 2023 22:07:22 +0000 (00:07 +0200)
commit6c6afb8463782af0689101b7c67cea80df83018f
tree97fdee9d271d1ce4bf633b6a56fc01f67ebc676f
parent930dcf12982091cb5658b5a44acd47676fbae631
fix: ensure newly created worker is used only if needed

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
src/pools/pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
tests/pools/selection-strategies/selection-strategies.test.js