Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rejectLimit.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _reject = require('./internal/reject');
  6. var _reject2 = _interopRequireDefault(_reject);
  7. var _doParallelLimit = require('./internal/doParallelLimit');
  8. var _doParallelLimit2 = _interopRequireDefault(_doParallelLimit);
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. /**
  11. * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a
  12. * time.
  13. *
  14. * @name rejectLimit
  15. * @static
  16. * @memberOf module:Collections
  17. * @method
  18. * @see [async.reject]{@link module:Collections.reject}
  19. * @category Collection
  20. * @param {Array|Iterable|Object} coll - A collection to iterate over.
  21. * @param {number} limit - The maximum number of async operations at a time.
  22. * @param {Function} iteratee - An async truth test to apply to each item in
  23. * `coll`.
  24. * The should complete with a boolean value as its `result`.
  25. * Invoked with (item, callback).
  26. * @param {Function} [callback] - A callback which is called after all the
  27. * `iteratee` functions have finished. Invoked with (err, results).
  28. */
  29. exports.default = (0, _doParallelLimit2.default)(_reject2.default);
  30. module.exports = exports['default'];