source: trip-planner-front/node_modules/async/selectLimit.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _filter = require('./internal/filter');
8
9var _filter2 = _interopRequireDefault(_filter);
10
11var _doParallelLimit = require('./internal/doParallelLimit');
12
13var _doParallelLimit2 = _interopRequireDefault(_doParallelLimit);
14
15function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17/**
18 * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a
19 * time.
20 *
21 * @name filterLimit
22 * @static
23 * @memberOf module:Collections
24 * @method
25 * @see [async.filter]{@link module:Collections.filter}
26 * @alias selectLimit
27 * @category Collection
28 * @param {Array|Iterable|Object} coll - A collection to iterate over.
29 * @param {number} limit - The maximum number of async operations at a time.
30 * @param {Function} iteratee - A truth test to apply to each item in `coll`.
31 * The `iteratee` is passed a `callback(err, truthValue)`, which must be called
32 * with a boolean argument once it has completed. Invoked with (item, callback).
33 * @param {Function} [callback] - A callback which is called after all the
34 * `iteratee` functions have finished. Invoked with (err, results).
35 */
36exports.default = (0, _doParallelLimit2.default)(_filter2.default);
37module.exports = exports['default'];
Note: See TracBrowser for help on using the repository browser.