# @trenskow/parallel

> A small library for doing async tasks in parallel.

Latest version **0.1.145** (published 2026-09-21) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @trenskow/parallel
pnpm add @trenskow/parallel
yarn add @trenskow/parallel
bun add @trenskow/parallel
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.145 |
| Published | 2026-09-21 |
| First published | 2022-04-10 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kristian Trenskow |
| Maintainers | trenskow |
| Keywords | parallel, async, promise, await |

## Links

- npm: https://www.npmjs.com/package/@trenskow/parallel
- Repository: https://github.com/trenskow/parallel
- Homepage: https://github.com/trenskow/parallel#readme
- Issues: https://github.com/trenskow/parallel/issues
- npm.io page: https://npm.io/package/@trenskow/parallel

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.1.145 (latest) — 2026-09-21
- 0.1.144 — 2026-09-18
- 0.1.143 — 2026-09-18
- 0.1.142 — 2026-09-18
- 0.1.141 — 2026-09-16
- 0.1.140 — 2026-09-16
- 0.1.139 — 2026-09-16
- 0.1.138 — 2026-09-16
- 0.1.137 — 2026-09-16
- 0.1.136 — 2026-08-03
- 0.1.135 — 2026-08-03
- 0.1.134 — 2026-08-03
- 0.1.133 — 2026-08-03
- 0.1.132 — 2026-07-27
- 0.1.131 — 2026-07-27
- … 141 more at https://npm.io/package/@trenskow/parallel/versions

## README

@trenskow/parallel
----

A small library for doing async tasks in parallel.

# Usage

Usage is pretty simple – see an example below.

````javascript
import parallel from '@trenskow/parallel';

const result = await parallel([
    myFirstPromise,
    mySecondPromise,
    ...
]);
````

## Compared to `Promise.all`

On the surface this looks a lot like `Promise.all`, but there is one crucial difference.

Where `Promise.all` settles fast, meaning if a promise is rejected then `Promise.all` will reject immediate – leaving the other promises to be potentially resolved.

This library is for when you want the opposite behavior, when you want all promises to be settled before the entire thing is resolved or rejected.

# LICENSE

See license in LICENSE

---
_Source: https://npm.io/package/@trenskow/parallel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
