3 Object.defineProperty(exports, "__esModule", {
7 var _concat = require('./internal/concat');
9 var _concat2 = _interopRequireDefault(_concat);
11 var _doParallel = require('./internal/doParallel');
13 var _doParallel2 = _interopRequireDefault(_doParallel);
15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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.
26 * @memberOf module:Collections
28 * @category Collection
29 * @param {Array|Iterable|Object} coll - A collection to iterate over.
30 * @param {Function} iteratee - A function to apply to each item in `coll`.
31 * The iteratee is passed a `callback(err, results)` which must be called once
32 * it has completed with an error (which can be `null`) and an array of results.
33 * Invoked with (item, callback).
34 * @param {Function} [callback(err)] - A callback which is called after all the
35 * `iteratee` functions have finished, or an error occurs. Results is an array
36 * containing the concatenated results of the `iteratee` function. Invoked with
40 * async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files) {
41 * // files is now a list of filenames that exist in the 3 directories
44 exports.default = (0, _doParallel2.default)(_concat2.default);
45 module.exports = exports['default'];