queue-limit

Queueing tasks with concurrency control


Keywords
promise, queue, limit, throttle, concurrent, concurrency, batch, job, task, async, await, promises
License
MIT
Install
npm install queue-limit@1.0.0

Documentation

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()