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

Function iterateeCallback

lib/internal/eachOfLimit.js:19–32  ·  view source on GitHub ↗
(err, value)

Source from the content-addressed store, hash-verified

17 var running = 0;
18
19 function iterateeCallback(err, value) {
20 running -= 1;
21 if (err) {
22 done = true;
23 callback(err);
24 }
25 else if (value === breakLoop || (done && running <= 0)) {
26 done = true;
27 return callback(null);
28 }
29 else {
30 replenish();
31 }
32 }
33
34 function replenish () {
35 while (running < limit && !done) {

Callers

nothing calls this directly

Calls 1

replenishFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…