summaryrefslogtreecommitdiff
path: root/lib/internal/doParallelLimit.js
blob: 5e2703ae6721ad91ae8076b115f1aa7adc7b33cc (plain)
1
2
3
4
5
6
import eachOfLimit from './eachOfLimit';
import wrapAsync from './wrapAsync';

export default function doParallelLimit(fn) {
    return (obj, limit, iteratee, cb) => fn(eachOfLimit(limit), obj, wrapAsync(iteratee), cb);
}