From: Jérôme Benoit Date: Fri, 7 Apr 2023 15:08:02 +0000 (+0200) Subject: docs: fix findFreeWorkerKey() return value X-Git-Tag: v2.4.4~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dba3384e0e6bc4049cb114d32e053cc4f2abe010;p=poolifier.git docs: fix findFreeWorkerKey() return value Signed-off-by: Jérôme Benoit --- 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. */