fix: workaround possible race condition at work nodes array element removal and querying
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 16 Oct 2023 09:35:58 +0000 (11:35 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 16 Oct 2023 09:35:58 +0000 (11:35 +0200)
commitdbfa7948a27653450e1eb30f4fd2127c16058101
tree4afbe325929b3d3072593872e26e6f3292d3fc68
parent6953e2cf25523cab4e0d6a9bcecb1250c19925f2
fix: workaround possible race condition at work nodes array element removal and querying

See https://github.com/poolifier/poolifier/issues/1468

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
CHANGELOG.md
src/pools/abstract-pool.ts
src/pools/cluster/fixed.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/thread/fixed.ts