File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -35664,7 +35664,8 @@ __nccwpck_require__.r(__webpack_exports__);
3566435664
3566535665// EXPORTS
3566635666__nccwpck_require__.d(__webpack_exports__, {
35667- "default": () => (/* binding */ pLimit)
35667+ "default": () => (/* binding */ pLimit),
35668+ limitFunction: () => (/* binding */ limitFunction)
3566835669});
3566935670
3567035671;// CONCATENATED MODULE: ./node_modules/yocto-queue/index.js
@@ -35840,6 +35841,13 @@ function pLimit(concurrency) {
3584035841return generator;
3584135842}
3584235843
35844+ function limitFunction(function_, option) {
35845+ const {concurrency} = option;
35846+ const limit = pLimit(concurrency);
35847+
35848+ return (...arguments_) => limit(() => function_(...arguments_));
35849+ }
35850+
3584335851function validateConcurrency(concurrency) {
3584435852if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
3584535853throw new TypeError('Expected `concurrency` to be a number from 1 and up');
You can’t perform that action at this time.
0 commit comments