From: Jérôme Benoit Date: Wed, 28 Aug 2024 14:25:41 +0000 (+0200) Subject: docs: refine pool ready event emission condition X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3abc7fe895e74ae347ab729569f94d25729fceb1;p=poolifier.git docs: refine pool ready event emission condition Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/pool.ts b/src/pools/pool.ts index bb772dc8..dac342ec 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -285,7 +285,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. If the pool is dynamic with a minimum number of workers is set to zero, this event is emitted when at least one dynamic worker is ready. + * - `'ready'`: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready. If the pool is dynamic with a minimum number of workers set to zero, this event is emitted when the pool is started. * - `'busy'`: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing concurrently their tasks quota. * - `'busyEnd'`: Emitted when the number of workers created in the pool has reached the maximum size expected and are no longer executing concurrently their tasks quota. * - `'full'`: Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.