root / HServer / 00.Server / 00.Program / node_modules / async / someSeries.js
이력 | 보기 | 이력해설 | 다운로드 (1.33 KB)
| 1 | 39 | HKM | 'use strict';
|
|---|---|---|---|
| 2 | |||
| 3 | Object.defineProperty(exports, "__esModule", {
|
||
| 4 | value: true |
||
| 5 | }); |
||
| 6 | |||
| 7 | var _someLimit = require('./someLimit'); |
||
| 8 | |||
| 9 | var _someLimit2 = _interopRequireDefault(_someLimit);
|
||
| 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 [`some`]{@link module:Collections.some} but runs only a single async operation at a time.
|
||
| 19 | *
|
||
| 20 | * @name someSeries
|
||
| 21 | * @static
|
||
| 22 | * @memberOf module:Collections
|
||
| 23 | * @method
|
||
| 24 | * @see [async.some]{@link module:Collections.some}
|
||
| 25 | * @alias anySeries
|
||
| 26 | * @category Collection
|
||
| 27 | * @param {Array|Iterable|Object} coll - A collection to iterate over.
|
||
| 28 | * @param {Function} iteratee - A truth test to apply to each item in the array
|
||
| 29 | * in parallel. The iteratee is passed a `callback(err, truthValue)` which must
|
||
| 30 | * be called with a boolean argument once it has completed. Invoked with
|
||
| 31 | * (item, callback).
|
||
| 32 | * @param {Function} [callback] - A callback which is called as soon as any
|
||
| 33 | * iteratee returns `true`, or after all the iteratee functions have finished.
|
||
| 34 | * Result will be either `true` or `false` depending on the values of the async
|
||
| 35 | * tests. Invoked with (err, result).
|
||
| 36 | */
|
||
| 37 | exports.default = (0, _doLimit2.default)(_someLimit2.default, 1); |
||
| 38 | module.exports = exports['default']; |