diff options
Diffstat (limited to 'node_modules/async/concatSeries.js')
-rw-r--r-- | node_modules/async/concatSeries.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/node_modules/async/concatSeries.js b/node_modules/async/concatSeries.js new file mode 100644 index 000000000..9daf0a07c --- /dev/null +++ b/node_modules/async/concatSeries.js @@ -0,0 +1,37 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _concat = require('./internal/concat'); + +var _concat2 = _interopRequireDefault(_concat); + +var _doSeries = require('./internal/doSeries'); + +var _doSeries2 = _interopRequireDefault(_doSeries); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time. + * + * @name concatSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.concat]{@link module:Collections.concat} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {Function} iteratee - A function to apply to each item in `coll`. + * The iteratee is passed a `callback(err, results)` which must be called once + * it has completed with an error (which can be `null`) and an array of results. + * Invoked with (item, callback). + * @param {Function} [callback(err)] - A callback which is called after all the + * `iteratee` functions have finished, or an error occurs. Results is an array + * containing the concatenated results of the `iteratee` function. Invoked with + * (err, results). + */ +exports.default = (0, _doSeries2.default)(_concat2.default); +module.exports = exports['default'];
\ No newline at end of file |