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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.33
    3
    • latest

Version History

Package Sidebar

Install

npm i queue-limit

Weekly Downloads

4

Version

1.0.33

License

MIT

Unpacked Size

6.08 kB

Total Files

8

Last publish

Collaborators

  • bmartinsdev