A limit on the number of pending promises (jobs launched but not yet fulfilled or rejected).

interface ConcurrencyOptions {
    concurrency: number;
}

Properties

Properties

concurrency: number

The maximum number of pending promises allowed by the strategy. Job execution is halted when the pending number reaches concurrency.