source: trip-planner-front/node_modules/async/everySeries.js@ 76712b2

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

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _everyLimit = require('./everyLimit');
8
9var _everyLimit2 = _interopRequireDefault(_everyLimit);
10
11var _doLimit = require('./internal/doLimit');
12
13var _doLimit2 = _interopRequireDefault(_doLimit);
14
15function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17/**
18 * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.
19 *
20 * @name everySeries
21 * @static
22 * @memberOf module:Collections
23 * @method
24 * @see [async.every]{@link module:Collections.every}
25 * @alias allSeries
26 * @category Collection
27 * @param {Array|Iterable|Object} coll - A collection to iterate over.
28 * @param {AsyncFunction} iteratee - An async truth test to apply to each item
29 * in the collection in series.
30 * The iteratee must complete with a boolean result value.
31 * Invoked with (item, callback).
32 * @param {Function} [callback] - A callback which is called after all the
33 * `iteratee` functions have finished. Result will be either `true` or `false`
34 * depending on the values of the async tests. Invoked with (err, result).
35 */
36exports.default = (0, _doLimit2.default)(_everyLimit2.default, 1);
37module.exports = exports['default'];
Note: See TracBrowser for help on using the repository browser.