root / HServer / 00.Server / 00.Program / node_modules / async / concatSeries.js
이력 | 보기 | 이력해설 | 다운로드 (1.31 KB)
| 1 | 39 | HKM | 'use strict';
 | 
|---|---|---|---|
| 2 | |||
| 3 | Object.defineProperty(exports, "__esModule", {
 | ||
| 4 | value: true | ||
| 5 | }); | ||
| 6 | |||
| 7 | var _concat = require('./internal/concat'); | ||
| 8 | |||
| 9 | var _concat2 = _interopRequireDefault(_concat);
 | ||
| 10 | |||
| 11 | var _doSeries = require('./internal/doSeries'); | ||
| 12 | |||
| 13 | var _doSeries2 = _interopRequireDefault(_doSeries);
 | ||
| 14 | |||
| 15 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
| 16 | |||
| 17 | /**
 | ||
| 18 |  * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.
 | ||
| 19 |  *
 | ||
| 20 |  * @name concatSeries
 | ||
| 21 |  * @static
 | ||
| 22 |  * @memberOf module:Collections
 | ||
| 23 |  * @method
 | ||
| 24 |  * @see [async.concat]{@link module:Collections.concat}
 | ||
| 25 |  * @category Collection
 | ||
| 26 |  * @param {Array|Iterable|Object} coll - A collection to iterate over.
 | ||
| 27 |  * @param {Function} iteratee - A function to apply to each item in `coll`.
 | ||
| 28 |  * The iteratee is passed a `callback(err, results)` which must be called once
 | ||
| 29 |  * it has completed with an error (which can be `null`) and an array of results.
 | ||
| 30 |  * Invoked with (item, callback).
 | ||
| 31 |  * @param {Function} [callback(err)] - A callback which is called after all the
 | ||
| 32 |  * `iteratee` functions have finished, or an error occurs. Results is an array
 | ||
| 33 |  * containing the concatenated results of the `iteratee` function. Invoked with
 | ||
| 34 |  * (err, results).
 | ||
| 35 |  */
 | ||
| 36 | exports.default = (0, _doSeries2.default)(_concat2.default); | ||
| 37 | module.exports = exports['default']; |