source: trip-planner-front/node_modules/async/concatSeries.js@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _doLimit = require('./internal/doLimit');
8
9var _doLimit2 = _interopRequireDefault(_doLimit);
10
11var _concatLimit = require('./concatLimit');
12
13var _concatLimit2 = _interopRequireDefault(_concatLimit);
14
15function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17/**
18 * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.
19 *
20 * @name concatSeries
21 * @static
22 * @memberOf module:Collections
23 * @method
24 * @see [async.concat]{@link module:Collections.concat}
25 * @category Collection
26 * @param {Array|Iterable|Object} coll - A collection to iterate over.
27 * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`.
28 * The iteratee should complete with an array an array of results.
29 * Invoked with (item, callback).
30 * @param {Function} [callback(err)] - A callback which is called after all the
31 * `iteratee` functions have finished, or an error occurs. Results is an array
32 * containing the concatenated results of the `iteratee` function. Invoked with
33 * (err, results).
34 */
35exports.default = (0, _doLimit2.default)(_concatLimit2.default, 1);
36module.exports = exports['default'];
Note: See TracBrowser for help on using the repository browser.