Projekt

Obecné

Profil

Stáhnout (1.55 KB) Statistiky
| Větev: | Revize:
1
'use strict';
2

    
3
Object.defineProperty(exports, "__esModule", {
4
  value: true
5
});
6

    
7
var _doLimit = require('./internal/doLimit');
8

    
9
var _doLimit2 = _interopRequireDefault(_doLimit);
10

    
11
var _concatLimit = require('./concatLimit');
12

    
13
var _concatLimit2 = _interopRequireDefault(_concatLimit);
14

    
15
function _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
 */
42
exports.default = (0, _doLimit2.default)(_concatLimit2.default, Infinity);
43
module.exports = exports['default'];
(19-19/105)