# @hamed.motallebi/concurrent-tasks

> Make a task queue to run specified number of tasks concurrently at the same time.

Latest version **1.0.8** (published 2018-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hamed.motallebi/concurrent-tasks
pnpm add @hamed.motallebi/concurrent-tasks
yarn add @hamed.motallebi/concurrent-tasks
bun add @hamed.motallebi/concurrent-tasks
```

## 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.8 |
| Published | 2018-12-30 |
| First published | 2018-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hamed Motallebi |
| Maintainers | hamed.motallebi |
| Keywords | promise, queue, task, queue, concurrently |

## Links

- npm: https://www.npmjs.com/package/@hamed.motallebi/concurrent-tasks
- npm.io page: https://npm.io/package/@hamed.motallebi/concurrent-tasks

## Dependencies (1)

- [log-update](https://npm.io/package/log-update.md) ^2.3.0

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 1.0.8 (latest) — 2018-12-30
- 1.0.7 — 2018-12-30
- 1.0.5 — 2018-12-30
- 1.0.4 — 2018-12-30
- 1.0.3 — 2018-12-30
- 1.0.2 — 2018-12-30
- 1.0.1 — 2018-12-30
- 1.0.0 — 2018-12-30

## README

# concurrent-tasks
Make a task queue to run specified number of tasks concurrently at the same time.

## Installation
This is a Node.js module available through the npm registry.

`$ npm i @hamed.motallebi/concurrent-tasks`

## Usage
```ecmascript 6
let PromiseQueue = require('@hamed.motallebi/concurrent-tasks');

let show = () => 'X';
let delay = (seconds) => new Promise(resolve => {
    setTimeout(resolve, seconds * 1000);
});

let tasks = [
    delay(4),
    delay(5),
    delay(1),
    delay(4),
    delay(6),
    delay(3),
    delay(1),
    delay(9),
    delay(9),
    delay(5),
    delay(11),
    delay(0),
    delay(2),
    delay(8),
    delay(4),
];

let delayQueue = new PromiseQueue(tasks, 2, show);
delayQueue.run();
```

See the package <a href="https://github.com/ivy-man/concurrent-tasks">source</a> for more details.

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