# @derhuerst/round-robin-scheduler

> A round-robin scheduler, compatible with the abstract-scheduler interface.

Latest version **1.0.4** (published 2020-01-06) · LAGPL license · 0 weekly downloads

## Install

```sh
npm install @derhuerst/round-robin-scheduler
pnpm add @derhuerst/round-robin-scheduler
yarn add @derhuerst/round-robin-scheduler
bun add @derhuerst/round-robin-scheduler
```

## 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.4 |
| Published | 2020-01-06 |
| First published | 2018-08-18 |
| Weekly downloads | 0 |
| License | LAGPL |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | round, robin, scheduler, abstract-scheduler, load balancer, load balancing |

## Links

- npm: https://www.npmjs.com/package/@derhuerst/round-robin-scheduler
- Repository: https://github.com/derhuerst/round-robin-scheduler
- Issues: https://github.com/derhuerst/round-robin-scheduler/issues
- npm.io page: https://npm.io/package/@derhuerst/round-robin-scheduler

## Recent versions

- 1.0.4 (latest) — 2020-01-06
- 1.0.3 — 2019-08-19
- 1.0.2 — 2019-08-19
- 1.0.1 — 2018-08-18

## README

# round-robin-scheduler

**A [round-robin](https://en.wikipedia.org/wiki/Round-robin_scheduling) [scheduler](https://en.wikipedia.org/wiki/Scheduling_(computing)), compatible with the [`abstract-scheduler` interface](https://www.npmjs.com/package/abstract-scheduler).**

[![compatible with abstract-scheduler](https://unpkg.com/abstract-scheduler@3/badge.svg)](https://github.com/derhuerst/abstract-scheduler)

[![npm version](https://img.shields.io/npm/v/@derhuerst/round-robin-scheduler.svg)](https://www.npmjs.com/package/@derhuerst/round-robin-scheduler)
[![build status](https://api.travis-ci.org/derhuerst/round-robin-scheduler.svg?branch=master)](https://travis-ci.org/derhuerst/round-robin-scheduler)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/round-robin-scheduler.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)


## Installation

```shell
npm install @derhuerst/round-robin-scheduler
```


## Usage

```js
const createRoundRobin = require('@derhuerst/round-robin-scheduler')

const roundRobin = createRoundRobin(['foo', 'bar'])

roundRobin.get() // foo
roundRobin.get() // bar
roundRobin.add('baz') // 2
roundRobin.length // 3
roundRobin.get() // baz
roundRobin.remove(0) // remove first item
roundRobin.get() // bar
```

`roundRobin` is compatible with the [`abstract-scheduler` interface](https://www.npmjs.com/package/abstract-scheduler).


## Contributing

If you have a question or need support using `round-robin-scheduler`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/round-robin-scheduler/issues).

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