# promise-concurrency

> run promises in parallel with a concurrency limit

Latest version **1.1.1** (published 2021-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-concurrency
pnpm add promise-concurrency
yarn add promise-concurrency
bun add promise-concurrency
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-01-05 |
| First published | 2015-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 66.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | springuper@gmail.com |
| Maintainers | springuper |
| Keywords | promise, concurrency |

## Links

- npm: https://www.npmjs.com/package/promise-concurrency
- Repository: https://github.com/springuper/promise-concurrency
- Homepage: https://github.com/springuper/promise-concurrency#readme
- Issues: https://github.com/springuper/promise-concurrency/issues
- npm.io page: https://npm.io/package/promise-concurrency

## 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

- 1.1.1 (latest) — 2021-01-05
- 1.1.0 — 2017-04-12
- 1.0.1 — 2017-04-11
- 1.0.0 — 2017-04-11
- 0.1.3 — 2015-11-30
- 0.1.2 — 2015-11-30
- 0.1.1 — 2015-11-30
- 0.1.0 — 2015-11-16

## README

# promise-concurrency

[![Build Status](https://travis-ci.org/springuper/promise-parallel.svg?branch=master)](https://travis-ci.org/springuper/promise-parallel)

run promises in parallel with a concurrency limit.

## Installation

```
npm install promise-concurrency
```

## Example

The most common use case:

```js
var promiseFactories = [5, 4, 3, 2, 1].map(function (item) {
    return function () {
        return new Promise(function (resolve, reject) {
            setTimeout(function () {
                resolve(item);
            }, item * 100);
        });
    };
});
promiseConcurrency(promiseFactories, 2).then(function (value) {
    console.log(value); // => [5, 4, 3, 2, 1]
});
```

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