Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

concatSeries.js 1.2KB

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