fix: ensure worker error is propagated unchanged if possible (#2634)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 24 Oct 2024 20:29:51 +0000 (22:29 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Oct 2024 20:29:51 +0000 (22:29 +0200)
commit7e582d647a6e2fff7aba7431133638dcfd0fa6f9
treec2f87ac71711236bd053020e0c931c42b6d386ec
parentcb9d18cc44c7be166b31dbdf2197563a3f713175
fix: ensure worker error is propagated unchanged if possible (#2634)

* fix: ensure worker error is propagated unchanged if possible

closes #2633

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
* refactor: cleanups

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
---------

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts
src/utility-types.ts
src/worker/abstract-worker.ts
src/worker/cluster-worker.ts
src/worker/thread-worker.ts
tests/pools/abstract-pool.test.mjs
tests/pools/cluster/fixed.test.mjs
tests/pools/thread/fixed.test.mjs
tests/worker/cluster-worker.test.mjs
tests/worker/thread-worker.test.mjs