refactor: abstract out measurement statistics
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 8 Jun 2023 17:14:12 +0000 (19:14 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 8 Jun 2023 17:14:12 +0000 (19:14 +0200)
commita4e07f7216246b772e13783937a97c87105b8fc3
tree706e469ba1ad89313987236c9bab6d94c171c7f6
parent213e817d69db5ac80137ef59ed5cdadcde4d73cf
refactor: abstract out measurement statistics

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
12 files changed:
src/index.ts
src/pools/abstract-pool.ts
src/pools/pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/worker.ts
tests/pools/abstract/abstract-pool.test.js
tests/pools/cluster/fixed.test.js
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/thread/fixed.test.js