Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

eachSeries.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _eachLimit = require('./eachLimit');
  6. var _eachLimit2 = _interopRequireDefault(_eachLimit);
  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 [`each`]{@link module:Collections.each} but runs only a single async operation at a time.
  12. *
  13. * @name eachSeries
  14. * @static
  15. * @memberOf module:Collections
  16. * @method
  17. * @see [async.each]{@link module:Collections.each}
  18. * @alias forEachSeries
  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
  22. * item in `coll`.
  23. * The array index is not passed to the iteratee.
  24. * If you need the index, use `eachOfSeries`.
  25. * Invoked with (item, callback).
  26. * @param {Function} [callback] - A callback which is called when all
  27. * `iteratee` functions have finished, or an error occurs. Invoked with (err).
  28. */
  29. exports.default = (0, _doLimit2.default)(_eachLimit2.default, 1);
  30. module.exports = exports['default'];