MCPcopy
hub / github.com/caolan/async / replenish

Function replenish

lib/internal/eachOfLimit.js:34–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 function replenish () {
35 while (running < limit && !done) {
36 var elem = nextElem();
37 if (elem === null) {
38 done = true;
39 if (running <= 0) {
40 callback(null);
41 }
42 return;
43 }
44 running += 1;
45 iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));
46 }
47 }
48
49 replenish();
50 };

Callers 2

iterateeCallbackFunction · 0.85
_eachOfLimitFunction · 0.85

Calls 2

iterateeFunction · 0.85
onlyOnceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…