Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
- `tasksQueueOptions` (optional) - The worker tasks queue options object to use in this pool.
Properties:
- - `concurrency` (optional) - The maximum number of tasks that can be executed concurrently on a worker.
-
- Default: `{ concurrency: 1 }`
+ - `concurrency` (optional) - The maximum number of tasks that can be executed concurrently on a worker. It must be a positive integer.
+ Default: `{ concurrency: 1 }`
#### `ThreadPoolOptions extends PoolOptions`
tasksQueueOptions.concurrency <= 0
) {
throw new Error(
- `Invalid worker tasks concurrency '${tasksQueueOptions.concurrency}'`
+ `Invalid worker tasks concurrency '${tasksQueueOptions.concurrency}' is a negative integer or zero`
)
}
}