Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
653 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = doParallelLimit;
|
---|
7 |
|
---|
8 | var _eachOfLimit = require('./eachOfLimit');
|
---|
9 |
|
---|
10 | var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
|
---|
11 |
|
---|
12 | var _wrapAsync = require('./wrapAsync');
|
---|
13 |
|
---|
14 | var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
---|
15 |
|
---|
16 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
17 |
|
---|
18 | function doParallelLimit(fn) {
|
---|
19 | return function (obj, limit, iteratee, callback) {
|
---|
20 | return fn((0, _eachOfLimit2.default)(limit), obj, (0, _wrapAsync2.default)(iteratee), callback);
|
---|
21 | };
|
---|
22 | }
|
---|
23 | module.exports = exports['default']; |
---|
Note:
See
TracBrowser
for help on using the repository browser.