1
|
'use strict';
|
2
|
|
3
|
Object.defineProperty(exports, "__esModule", {
|
4
|
value: true
|
5
|
});
|
6
|
|
7
|
var _applyEach = require('./internal/applyEach');
|
8
|
|
9
|
var _applyEach2 = _interopRequireDefault(_applyEach);
|
10
|
|
11
|
var _mapSeries = require('./mapSeries');
|
12
|
|
13
|
var _mapSeries2 = _interopRequireDefault(_mapSeries);
|
14
|
|
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16
|
|
17
|
/**
|
18
|
* The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.
|
19
|
*
|
20
|
* @name applyEachSeries
|
21
|
* @static
|
22
|
* @memberOf module:ControlFlow
|
23
|
* @method
|
24
|
* @see [async.applyEach]{@link module:ControlFlow.applyEach}
|
25
|
* @category Control Flow
|
26
|
* @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s to all
|
27
|
* call with the same arguments
|
28
|
* @param {...*} [args] - any number of separate arguments to pass to the
|
29
|
* function.
|
30
|
* @param {Function} [callback] - the final argument should be the callback,
|
31
|
* called when all functions have completed processing.
|
32
|
* @returns {Function} - If only the first argument is provided, it will return
|
33
|
* a function which lets you pass in the arguments as if it were a single
|
34
|
* function call.
|
35
|
*/
|
36
|
exports.default = (0, _applyEach2.default)(_mapSeries2.default);
|
37
|
module.exports = exports['default'];
|