UNPKG

1.3 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _applyEach = require('./internal/applyEach');
8
9var _applyEach2 = _interopRequireDefault(_applyEach);
10
11var _mapSeries = require('./mapSeries');
12
13var _mapSeries2 = _interopRequireDefault(_mapSeries);
14
15function _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|AsyncIterable|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 {AsyncFunction} - A function, that when called, is the result of
33 * appling the `args` to the list of functions. It takes no args, other than
34 * a callback.
35 */
36exports.default = (0, _applyEach2.default)(_mapSeries2.default);
37module.exports = exports['default'];
\No newline at end of file