1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = timeLimit;
|
7 |
|
8 | var _mapLimit = require('./mapLimit');
|
9 |
|
10 | var _mapLimit2 = _interopRequireDefault(_mapLimit);
|
11 |
|
12 | var _baseRange = require('lodash/_baseRange');
|
13 |
|
14 | var _baseRange2 = _interopRequireDefault(_baseRange);
|
15 |
|
16 | var _wrapAsync = require('./internal/wrapAsync');
|
17 |
|
18 | var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
19 |
|
20 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | function timeLimit(count, limit, iteratee, callback) {
|
39 | var _iteratee = (0, _wrapAsync2.default)(iteratee);
|
40 | (0, _mapLimit2.default)((0, _baseRange2.default)(0, count, 1), limit, _iteratee, callback);
|
41 | }
|
42 | module.exports = exports['default']; |
\ | No newline at end of file |