refactor: move worker setup into worker node constructor
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 15 Dec 2023 16:59:52 +0000 (17:59 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 15 Dec 2023 16:59:52 +0000 (17:59 +0100)
commitc3719753af0a9be03abf722a7543495359e817b5
tree6709bcf7473615968f5e865b9b7d3fd69edf43fe
parent0bf5dba7344871d1b481fd29bbe99f1c609b18bf
refactor: move worker setup into worker node constructor

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
17 files changed:
CHANGELOG.md
docs/api.md
src/index.ts
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.ts
src/pools/pool.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
src/pools/utils.ts
src/pools/worker-node.ts
src/pools/worker.ts
tests/pools/abstract-pool.test.mjs
tests/pools/cluster/dynamic.test.mjs
tests/pools/thread/dynamic.test.mjs
tests/pools/utils.test.mjs
tests/pools/worker-node.test.mjs