repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add dynamic pool sizes type check
[poolifier.git]
/
src
/
pools
/
pool.ts
diff --git
a/src/pools/pool.ts
b/src/pools/pool.ts
index 4a0ab725adbaaa5cb08a5740ba195663b554270f..207a8598e3bb9d401ca653eee8b232b4f8f52ee7 100644
(file)
--- a/
src/pools/pool.ts
+++ b/
src/pools/pool.ts
@@
-64,7
+64,7
@@
export interface PoolInfo {
readonly strategy: WorkerChoiceStrategy
readonly minSize: number
readonly maxSize: number
readonly strategy: WorkerChoiceStrategy
readonly minSize: number
readonly maxSize: number
- /** Pool utilization
ratio
. */
+ /** Pool utilization. */
readonly utilization?: number
/** Pool total worker nodes. */
readonly workerNodes: number
readonly utilization?: number
/** Pool total worker nodes. */
readonly workerNodes: number
@@
-198,7
+198,7
@@
export interface IPool<
*/
readonly execute: (data?: Data, name?: string) => Promise<Response>
/**
*/
readonly execute: (data?: Data, name?: string) => Promise<Response>
/**
- * Terminates
every current worker
in this pool.
+ * Terminates
all workers
in this pool.
*/
readonly destroy: () => Promise<void>
/**
*/
readonly destroy: () => Promise<void>
/**