Throttle async task with parallel limitation.
This package is deprecated to prefer the new runs-limit-func package.
npm i parallel-throttle
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(...)
})
MIT