root / HServer / 00.Server / 00.Program / node_modules / async / eachOfSeries.js
이력 | 보기 | 이력해설 | 다운로드 (1.35 KB)
1 |
'use strict';
|
---|---|
2 |
|
3 |
Object.defineProperty(exports, "__esModule", {
|
4 |
value: true |
5 |
}); |
6 |
|
7 |
var _eachOfLimit = require('./eachOfLimit'); |
8 |
|
9 |
var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
|
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 [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.
|
19 |
*
|
20 |
* @name eachOfSeries
|
21 |
* @static
|
22 |
* @memberOf module:Collections
|
23 |
* @method
|
24 |
* @see [async.eachOf]{@link module:Collections.eachOf}
|
25 |
* @alias forEachOfSeries
|
26 |
* @category Collection
|
27 |
* @param {Array|Iterable|Object} coll - A collection to iterate over.
|
28 |
* @param {Function} iteratee - A function to apply to each item in `coll`. The
|
29 |
* `key` is the item's key, or index in the case of an array. The iteratee is
|
30 |
* passed a `callback(err)` which must be called once it has completed. If no
|
31 |
* error has occurred, the callback should be run without arguments or with an
|
32 |
* explicit `null` argument. Invoked with (item, key, callback).
|
33 |
* @param {Function} [callback] - A callback which is called when all `iteratee`
|
34 |
* functions have finished, or an error occurs. Invoked with (err).
|
35 |
*/
|
36 |
exports.default = (0, _doLimit2.default)(_eachOfLimit2.default, 1); |
37 |
module.exports = exports['default'];
|