프로젝트

일반

사용자정보

통계
| 개정판:

root / HServer / 00.Server / 00.Program / node_modules / async / eachSeries.js

이력 | 보기 | 이력해설 | 다운로드 (1.36 KB)

1 39 HKM
'use strict';
2
3
Object.defineProperty(exports, "__esModule", {
4
  value: true
5
});
6
7
var _eachLimit = require('./eachLimit');
8
9
var _eachLimit2 = _interopRequireDefault(_eachLimit);
10
11
var _doLimit = require('./internal/doLimit');
12
13
var _doLimit2 = _interopRequireDefault(_doLimit);
14
15
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
/**
18
 * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.
19
 *
20
 * @name eachSeries
21
 * @static
22
 * @memberOf module:Collections
23
 * @method
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).
36
 */
37
exports.default = (0, _doLimit2.default)(_eachLimit2.default, 1);
38
module.exports = exports['default'];