source: trip-planner-front/node_modules/async/concat.js@ fa375fe

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: 1.6 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 * Applies `iteratee` to each item in `coll`, concatenating the results. Returns
19 * the concatenated list. The `iteratee`s are called in parallel, and the
20 * results are concatenated as they return. There is no guarantee that the
21 * results array will be returned in the original order of `coll` passed to the
22 * `iteratee` function.
23 *
24 * @name concat
25 * @static
26 * @memberOf module:Collections
27 * @method
28 * @category Collection
29 * @param {Array|Iterable|Object} coll - A collection to iterate over.
30 * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
31 * which should use an array as its result. Invoked with (item, callback).
32 * @param {Function} [callback(err)] - A callback which is called after all the
33 * `iteratee` functions have finished, or an error occurs. Results is an array
34 * containing the concatenated results of the `iteratee` function. Invoked with
35 * (err, results).
36 * @example
37 *
38 * async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files) {
39 * // files is now a list of filenames that exist in the 3 directories
40 * });
41 */
42exports.default = (0, _doLimit2.default)(_concatLimit2.default, Infinity);
43module.exports = exports['default'];
Note: See TracBrowser for help on using the repository browser.