queue-limit
v1.0.33
Published
Queueing tasks with concurrency control
Downloads
3
Maintainers
Readme
queue-limit
Lightweight package to handle multiple async calls with rate limiting.
Install
npm i queue-limit
Usage
import { Queued } from 'queue-limit';
const tasks = [
() => Promise.resolve(true),
async () => 30,
() => new Promise(res => {
setTimeout(() => res('delayed'), 10);
})
]
const res = await new Queued(tasks).all()