# promise-concurrent

> Execute a list of promises with a limited concurrency

Latest version **1.0.0** (published 2016-04-24) · MIT license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2016-04-24 |
| First published | 2016-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Sam Verschueren |
| Maintainers | samverschueren |
| Keywords | promise, promises, concurrent, concurrency, all |

## Links

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

## 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.0.0 (latest) — 2016-04-24

## README

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

> Execute a list of promises with a limited concurrency


## Install

```
$ npm install --save promise-concurrent
```


## Usage

```js
const promiseConcurrent = require('promise-concurrent');
const got = require('got');

const endpoints = [
	got.bind(got, 'todomvc.com'),
	got.bind(got, 'yeoman.io'),
	got.bind(got, 'ava.li')
];

promiseConcurrent(endpoints, 1).then(result => {
	console.log(result);
	//=> array of response objects
});
```


## API

### promiseConcurrent(promises, [concurrency])

#### promises

Type: `function[]`

Array of functions that return a promise.

#### concurrency

Type: `number`<br>
Default: `0`

Number of concurrent executions. `0` means maximum concurrency.


## License

MIT © [Sam Verschueren](https://github.com/SamVerschueren)

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