API reference › @evolu/common › Task › TaskCollectionOptions
Defined in: packages/common/src/Task.ts:2931
Options shared by Task collection helpers.
concurrency controls how many Tasks run at once. It defaults to 1. For
CPU-bound Tasks backed by workers or native parallelism, a platform
availableParallelism() result is often a good limit. For network or
database Tasks, choose a limit based on the transport, server, connection
pool, and rate limits.
Keep concurrency bounded. In rare cases where running every Task concurrently is safe, use maxPositiveInt.
Extended by
Properties
concurrency?
readonly optional concurrency?: Int1To100OrPositiveInt;
Defined in: packages/common/src/Task.ts:2933
Maximum number of Tasks run concurrently. Defaults to 1.