repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for [cluster settings](https://nodejs.org/api/cluster.html#cluster_cluste...
[poolifier.git]
/
src
/
pools
/
pool-internal.ts
diff --git
a/src/pools/pool-internal.ts
b/src/pools/pool-internal.ts
index 6e2850a892d8d63f024e09d6db40e23b43129c06..3f35ec13e25b79e67c3cb2c9084843adcbf63f99 100644
(file)
--- a/
src/pools/pool-internal.ts
+++ b/
src/pools/pool-internal.ts
@@
-84,7
+84,7
@@
export interface IPoolInternal<
readonly numberOfRunningTasks: number
/**
readonly numberOfRunningTasks: number
/**
- * Find a free worker based on the number of tasks the worker has applied.
+ * Find
s
a free worker based on the number of tasks the worker has applied.
*
* If a worker is found with `0` running tasks, it is detected as free and returned.
*
*
* If a worker is found with `0` running tasks, it is detected as free and returned.
*
@@
-95,7
+95,7
@@
export interface IPoolInternal<
findFreeWorker(): Worker | false
/**
findFreeWorker(): Worker | false
/**
- * Get worker index.
+ * Get
s
worker index.
*
* @param worker The worker.
* @returns The worker index.
*
* @param worker The worker.
* @returns The worker index.
@@
-103,7
+103,7
@@
export interface IPoolInternal<
getWorkerIndex(worker: Worker): number
/**
getWorkerIndex(worker: Worker): number
/**
- * Get worker running tasks.
+ * Get
s
worker running tasks.
*
* @param worker The worker.
* @returns The number of tasks currently running on the worker.
*
* @param worker The worker.
* @returns The number of tasks currently running on the worker.
@@
-111,7
+111,7
@@
export interface IPoolInternal<
getWorkerRunningTasks(worker: Worker): number | undefined
/**
getWorkerRunningTasks(worker: Worker): number | undefined
/**
- * Get worker average tasks runtime.
+ * Get
s
worker average tasks runtime.
*
* @param worker The worker.
* @returns The average tasks runtime on the worker.
*
* @param worker The worker.
* @returns The average tasks runtime on the worker.