MCPcopy
hub / github.com/Kong/insomnia / next

Function next

packages/insomnia/bin/yarn-standalone.js:25021–25037  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25019 }
25020
25021 function next() {
25022 const item = arr.shift();
25023 const promise = promiseProducer(item);
25024
25025 promise.then(function (result) {
25026 results.push(result);
25027
25028 total--;
25029 if (total === 0) {
25030 resolve(results);
25031 } else {
25032 if (arr.length) {
25033 next();
25034 }
25035 }
25036 }, reject);
25037 }
25038 });
25039}
25040

Callers 15

yarn-standalone.jsFile · 0.70
queueFunction · 0.70
runMethod · 0.70
statFunction · 0.70
onsymlinkFunction · 0.70
onlinkFunction · 0.70
onfileFunction · 0.70
processMethod · 0.70
afterGlobFunction · 0.70
onFulfilledFunction · 0.70
onRejectedFunction · 0.70
CacheObjectFunction · 0.70

Calls 7

resolveFunction · 0.85
onRejectedFunction · 0.85
hasMoreFunction · 0.85
shiftMethod · 0.80
isPromiseFunction · 0.70
pushMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected