X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fpool.ts;h=7a10373393786ac56c0e7f9a98b69f81639cbbe1;hb=2205e90385a6d3173c6b6130e9620389f50fb2ca;hp=cc028fecf45d7e3106b09cd0028a55e977e284b9;hpb=e458035a3f34d2fe43a9c24cb9717709805e4d9c;p=poolifier.git diff --git a/src/pools/pool.ts b/src/pools/pool.ts index cc028fec..7a103733 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -80,6 +80,7 @@ export interface PoolInfo { readonly queuedTasks?: number readonly maxQueuedTasks?: number readonly backPressure?: boolean + readonly stolenTasks?: number readonly failedTasks: number readonly runTime?: { readonly minimum: number @@ -207,7 +208,7 @@ export interface IPool< * Events that can currently be listened to: * * - `'ready'`: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready. - * - `'busy'`: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task. + * - `'busy'`: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing concurrently their tasks quota. * - `'full'`: Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected. * - `'destroy'`: Emitted when the pool is destroyed. * - `'error'`: Emitted when an uncaught error occurs.