perf: remove unneeded class indirection for dynamic pool in worker
[poolifier.git] / src / pools / cluster / dynamic.ts
index c4fc788cd8dcdd0528bca2234caead2d9fc70ccd..79f684cbd39a2990f0b7f968e41cf7dda9d70569 100644 (file)
@@ -6,7 +6,7 @@ import { FixedClusterPool } from './fixed'
  * A cluster pool with a dynamic number of workers, but a guaranteed minimum number of workers.
  *
  * This cluster pool creates new workers when the others are busy, up to the maximum number of workers.
- * When the maximum number of workers is reached, an event is emitted. If you want to listen to this event, use the pool's `emitter`.
+ * When the maximum number of workers is reached and workers are busy, an event is emitted. If you want to listen to this event, use the pool's `emitter`.
  *
  * @typeParam Data - Type of data sent to the worker. This can only be serializable data.
  * @typeParam Response - Type of response of execution. This can only be serializable data.