API Reference

p-all

Run promise-returning functions concurrently with optional concurrency cap.

Official Documentation ↗
CompatibilityThis documentation covers version v5.0.0. Check the official docs for the latest API surface.

Installation

npmnpm install p-all
pnpmpnpm add p-all

Methods

p-all is run promise-returning functions concurrently with optional concurrency cap.

Key Features

  • resilience: Designed for resilience scenarios with a focused API surface.

Installation

npm install p-all

Usage

API reference evidence

Fetched from official sources on 2026-11-08T18:24:00+08:00 via WebFetch https://raw.githubusercontent.com/sindresorhus/p-all/main/index.d.ts.

FAQ

How does p-all handle concurrency?
Pass { concurrency: N } in options to cap concurrent operations. Default runs all in parallel.
Does p-all stop on the first rejection?
Yes, by default the first rejection short-circuits. Use settle variants to collect all outcomes.
Is p-all tree-shakeable?
Yes, p-all ships ESM and named exports, enabling bundlers to tree-shake unused functions.