Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
license.md | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
A round-robin scheduler, compatible with the abstract-scheduler
interface.
npm install @derhuerst/round-robin-scheduler
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.
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.