3 Object.defineProperty(exports, "__esModule", {
7 var _eachLimit = require('./eachLimit');
9 var _eachLimit2 = _interopRequireDefault(_eachLimit);
11 var _doLimit = require('./internal/doLimit');
13 var _doLimit2 = _interopRequireDefault(_doLimit);
15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18 * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.
22 * @memberOf module:Collections
24 * @see [async.each]{@link module:Collections.each}
25 * @alias forEachSeries
26 * @category Collection
27 * @param {Array|Iterable|Object} coll - A collection to iterate over.
28 * @param {Function} iteratee - A function to apply to each
29 * item in `coll`. The iteratee is passed a `callback(err)` which must be called
30 * once it has completed. If no error has occurred, the `callback` should be run
31 * without arguments or with an explicit `null` argument. The array index is
32 * not passed to the iteratee. Invoked with (item, callback). If you need the
33 * index, use `eachOfSeries`.
34 * @param {Function} [callback] - A callback which is called when all
35 * `iteratee` functions have finished, or an error occurs. Invoked with (err).
37 exports.default = (0, _doLimit2.default)(_eachLimit2.default, 1);
38 module.exports = exports['default'];