# concurrency-promise

> Split promises in chunks and execute by Promise.all

Latest version **1.0.1** (published 2018-06-08) · ISC license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2018-06-08 |
| First published | 2018-06-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rhrn |
| Keywords | promise, concurrency |

## Links

- npm: https://www.npmjs.com/package/concurrency-promise
- npm.io page: https://npm.io/package/concurrency-promise

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@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

## Recent versions

- 1.0.1 (latest) — 2018-06-08
- 1.0.0 — 2018-06-05

## README

# concurrency-promise
```
Split promises in chunks and execute by Promise.all
```

## install
```
npm install --save concurrency-promise
```


## Usage
```
import { promiseAll } from 'concurrency-promise'

const data = [0,1,2,3,4,5,6,7,8,9]

// First wrap promises by function
const wrapped = data.map(i => {

  return () => {
    // Here your promise
    return Promise.resolve(i * i)
  }

})


async function run() {
  // will split in chunks and execute by Promise.all
  const result = await promiseAll(wrapped, 3)
  console.log(result)
}

run()
```

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