queue-limit
TypeScript icon, indicating that this package has built-in type declarations

1.0.33 • Public • Published

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

Package Sidebar

Install

npm i queue-limit

Weekly Downloads

1

Version

1.0.33

License

MIT

Unpacked Size

6.08 kB

Total Files

8

Last publish

Collaborators

  • bmartinsdev