root / HServer / 00.Server / 00.Program / node_modules / async / timesSeries.js
이력 | 보기 | 이력해설 | 다운로드 (1009 Bytes)
1 |
'use strict';
|
---|---|
2 |
|
3 |
Object.defineProperty(exports, "__esModule", {
|
4 |
value: true |
5 |
}); |
6 |
|
7 |
var _timesLimit = require('./timesLimit'); |
8 |
|
9 |
var _timesLimit2 = _interopRequireDefault(_timesLimit);
|
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 [times]{@link module:ControlFlow.times} but runs only a single async operation at a time.
|
19 |
*
|
20 |
* @name timesSeries
|
21 |
* @static
|
22 |
* @memberOf module:ControlFlow
|
23 |
* @method
|
24 |
* @see [async.times]{@link module:ControlFlow.times}
|
25 |
* @category Control Flow
|
26 |
* @param {number} n - The number of times to run the function.
|
27 |
* @param {Function} iteratee - The function to call `n` times. Invoked with the
|
28 |
* iteration index and a callback (n, next).
|
29 |
* @param {Function} callback - see {@link module:Collections.map}.
|
30 |
*/
|
31 |
exports.default = (0, _doLimit2.default)(_timesLimit2.default, 1); |
32 |
module.exports = exports['default'];
|