source: trip-planner-front/node_modules/async/applyEachSeries.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
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|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 */
36exports.default = (0, _applyEach2.default)(_mapSeries2.default);
37module.exports = exports['default'];
Note: See TracBrowser for help on using the repository browser.