Skip to content

zain-saqer/throttled-q

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

throttled-q

throttled-q is a job queue that throttle the job executions to a specific rate.

Installation

npm i throttled-q

Example

const q = new JobQueue(1, 1000)

for (let i = 0; i < 10; i++) {
    await q.enqueue(() => console.log(i))
}

About

A throttled job queue

Resources

License

Stars

Watchers

Forks