refactor: untangle worker choosing code from worker creation code
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 7 Apr 2023 16:46:42 +0000 (18:46 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 7 Apr 2023 16:46:42 +0000 (18:46 +0200)
commit17393ac83cbf0eacf68ea9efb0a577cc30a5c685
treeb90376c065cd8e33793ab6a98dfbcdeb6d07c207
parent4736ba628fabbf7e34e36ef0f55a96e86b7033ac
refactor: untangle worker choosing code from worker creation code

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/less-busy-worker-choice-strategy.ts
src/pools/selection-strategies/less-used-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