Skip to content

zhaoyao91/parallel-throttle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Throttle

Throttle async task with parallel limitation.

Deprecation

This package is deprecated to prefer the new runs-limit-func package.

Installation

npm i parallel-throttle

Usage

const ParallelThrottle = require('parallel-throttle')

// every task is an async function without any argument
const tasks = [...]

const throttle = new ParallelThrottle({maxTasksInParallel: 100})

tasks.forEach(task => {
  throttle.add(task).then(...).catch(...)
})

License

MIT

About

Throttle async task with parallel limitation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages