From: Jérôme Benoit Date: Mon, 18 Dec 2023 18:23:34 +0000 (+0100) Subject: refactor: allow to disable tasks end wait time X-Git-Tag: v3.1.6~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6f3a391bc171dd4492a67362b4f1f97a074906ad;p=poolifier.git refactor: allow to disable tasks end wait time Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/utils.ts b/src/pools/utils.ts index 3b98fbdc..c7ab2d1e 100644 --- a/src/pools/utils.ts +++ b/src/pools/utils.ts @@ -351,7 +351,7 @@ export const waitWorkerNodeEvents = async < resolve(events) } }) - if (timeout > 0) { + if (timeout >= 0) { setTimeout(() => { resolve(events) }, timeout)