# q_q

> minimal first in first out task queue

Latest version **1.0.0** (published 2016-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install q_q
pnpm add q_q
yarn add q_q
bun add q_q
```

## 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-10-30 |
| First published | 2016-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eric Birkeland |
| Maintainers | hadhadhadhadabettereffect |
| Keywords | queue, task, async, fifo |

## Links

- npm: https://www.npmjs.com/package/q_q
- Repository: https://github.com/hadhadhadhadabettereffect/q_q
- Homepage: https://github.com/hadhadhadhadabettereffect/q_q#readme
- Issues: https://github.com/hadhadhadhadabettereffect/q_q/issues
- npm.io page: https://npm.io/package/q_q

## Dependencies (1)

- [raf](https://npm.io/package/raf.md) ^3.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.0 (latest) — 2016-10-30

## README

# task queue
First-in-first-out queue for async tasks fired in batches with requestAnimationFrame.

## usage
basic usage
```javascript
import queue from "q_q";

queue(function() {
    console.log("later");
});

console.log("now");

/*
    now
    later
 */
```

queueOnce will skip tasks already in queue
```javascript
import { queueOnce } from "q_q";

function sayHi() {
    console.log("hi!");
}

for (let i = 0; i < 10; ++i) {
    queueOnce(sayHi);
}
/*
    hi!
 */
```

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