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.

eachOfSeries.js 1.1KB

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