API reference › @evolu/common › Task › TaskCollectionOptions

Defined in: packages/common/src/Task.ts:3018

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 concurrency?: Int1To100OrPositiveInt;

Defined in: packages/common/src/Task.ts:3020

Maximum number of Tasks run concurrently. Defaults to 1.