From dba3384e0e6bc4049cb114d32e053cc4f2abe010 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 7 Apr 2023 17:08:02 +0200 Subject: [PATCH] docs: fix findFreeWorkerKey() return value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/pool-internal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pools/pool-internal.ts b/src/pools/pool-internal.ts index ddfcc41e..c3ec39be 100644 --- a/src/pools/pool-internal.ts +++ b/src/pools/pool-internal.ts @@ -75,7 +75,7 @@ export interface IPoolInternal< * * If a worker is found with `0` running tasks, it is detected as free and its key is returned. * - * If no free worker is found, `false` is returned. + * If no free worker is found, `-1` is returned. * * @returns A worker key if there is one, `-1` otherwise. */ -- 2.34.1