# async-function-queue

> Async Function Queue

Latest version **1.0.0** (published 2015-11-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install async-function-queue
pnpm add async-function-queue
yarn add async-function-queue
bun add async-function-queue
```

## 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 | 2015-11-25 |
| First published | 2015-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | pgte |
| Maintainers | pgte |
| Keywords | queue, async, function |

## Links

- npm: https://www.npmjs.com/package/async-function-queue
- Repository: https://github.com/pgte/async-function-queue
- Homepage: https://github.com/pgte/async-function-queue#readme
- Issues: https://github.com/pgte/async-function-queue/issues
- npm.io page: https://npm.io/package/async-function-queue

## 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.0 (latest) — 2015-11-25

## README

# async-function-queue

[![By](https://img.shields.io/badge/made%20by-yld!-32bbee.svg?style=flat)](http://yld.io/contact?source=github-async-function-queue)
[![Build Status](https://secure.travis-ci.org/pgte/async-function-queue.svg?branch=master)](http://travis-ci.org/pgte/async-function-queue?branch=master)


Simple async function queue.

## Install

```
$ npm install async-function-queue --save
```

## Use

```js
var Queue = require('async-function-queue');

var concurrency = 2;

// create a queue, defining concurrency
var queue = Queue(concurrency);

// push a function that accepts a callback
// as sole argument
queue.push(function(cb) {
  setTimeout(cb, 1000);
});
```

### Events

```js
// Some emitted events

queue.on('entry', function() {
  console.log('starting to execute function');
});

queue.on('exit', function() {
  console.log('finished executing function');
});

queue.on('drain', function() {
  console.log('queue has drained');
});

```

## License

ISC

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