# rsvp-backlog

> Like RSVP.all() but a little smarter

Latest version **0.2.0** (published 2017-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install rsvp-backlog
pnpm add rsvp-backlog
yarn add rsvp-backlog
bun add rsvp-backlog
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-10-18 |
| First published | 2015-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Adam Shaylor |
| Maintainers | adamshaylor |
| Keywords | RSVP, promise, queue, backlog |

## Links

- npm: https://www.npmjs.com/package/rsvp-backlog
- Repository: https://github.com/adamshaylor/rsvp-backlog
- Issues: https://github.com/adamshaylor/rsvp-backlog/issues
- npm.io page: https://npm.io/package/rsvp-backlog

## Dependencies (1)

- [rsvp](https://npm.io/package/rsvp.md) 3.x

## 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

- 0.2.0 (latest) — 2017-10-18
- 0.1.0 — 2016-10-12
- 0.0.0 — 2015-04-14

## README

# rsvp-backlog

![Build status](https://travis-ci.org/adamshaylor/rsvp-backlog.svg?branch=master)

```javascript
var backlog = RSVP.createBacklog();

backlog.add(somePromise);

// Access a promise in the backlog directly

backlog.toArray()[0].then(doSomething);

// The promise behind .whenClear() resets when the backlog size goes from zero 
// to one, so you need at least one promise before you can call it

backlog.whenClear().then(doSomethingElse);

// Callback functions can be passed to handle additions, removals and 
// resolutions

backlog.whenChanged(function () {

    // The callback is bound to the backlog

    renderBacklogProgress(this.toArray().length);

});

// Resolving or removing the last promise in the backlog resolves the backlog
// as a whole

backlog.remove(somePromise);
```

## Bower installation

From a terminal:

```shell
bower install rsvp-backlog
```

In your HTML:

```html
<script src="bower_components/rsvp-backlog/rsvp-backlog.min.js">
```

## Node installation

From a terminal:

```shell
npm install rsvp-backlog
```

In your script:

```javascript
var createBacklog = require('rsvp-backlog'),
    backlog = createBacklog();
```

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