MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / ready

Function ready

public/javascripts/async.js:589–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

587 }
588 }
589 function ready() {
590 return runningTasks < concurrency && _reduce(requires, function (a, x) {
591 return (a && results.hasOwnProperty(x));
592 }, true) && !results.hasOwnProperty(k);
593 }
594 if (ready()) {
595 runningTasks++;
596 task[task.length - 1](taskCallback, results);

Callers 2

async.jsFile · 0.85
listenerFunction · 0.85

Calls 1

_reduceFunction · 0.85

Tested by

no test coverage detected