repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: fix findFreeWorkerKey() return value
[poolifier.git]
/
src
/
pools
/
pool-internal.ts
diff --git
a/src/pools/pool-internal.ts
b/src/pools/pool-internal.ts
index ddfcc41ec40758e8520a2d708bf823aaaebeb39c..c3ec39bea578d3de3c0423f2ef789e0cd6c6f9df 100644
(file)
--- 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 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.
*/
*
* @returns A worker key if there is one, `-1` otherwise.
*/