root / HServer / 00.Server / 00.Program / node_modules / async / mapValuesSeries.js
이력 | 보기 | 이력해설 | 다운로드 (1.37 KB)
1 | 39 | HKM | 'use strict';
|
---|---|---|---|
2 | |||
3 | Object.defineProperty(exports, "__esModule", {
|
||
4 | value: true |
||
5 | }); |
||
6 | |||
7 | var _mapValuesLimit = require('./mapValuesLimit'); |
||
8 | |||
9 | var _mapValuesLimit2 = _interopRequireDefault(_mapValuesLimit);
|
||
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 [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.
|
||
19 | *
|
||
20 | * @name mapValuesSeries
|
||
21 | * @static
|
||
22 | * @memberOf module:Collections
|
||
23 | * @method
|
||
24 | * @see [async.mapValues]{@link module:Collections.mapValues}
|
||
25 | * @category Collection
|
||
26 | * @param {Object} obj - A collection to iterate over.
|
||
27 | * @param {Function} iteratee - A function to apply to each value in `obj`.
|
||
28 | * The iteratee is passed a `callback(err, transformed)` which must be called
|
||
29 | * once it has completed with an error (which can be `null`) and a
|
||
30 | * transformed value. Invoked with (value, key, callback).
|
||
31 | * @param {Function} [callback] - A callback which is called when all `iteratee`
|
||
32 | * functions have finished, or an error occurs. `result` is a new object consisting
|
||
33 | * of each key from `obj`, with each transformed value on the right-hand side.
|
||
34 | * Invoked with (err, result).
|
||
35 | */
|
||
36 | exports.default = (0, _doLimit2.default)(_mapValuesLimit2.default, 1); |
||
37 | module.exports = exports['default']; |