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

Function taskComplete

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

Source from the content-addressed store, hash-verified

539 if (idx >= 0) listeners.splice(idx, 1);
540 }
541 function taskComplete() {
542 remainingTasks--;
543 _arrayEach(listeners.slice(0), function (fn) {
544 fn();
545 });
546 }
547
548 addListener(function () {
549 if (!remainingTasks) {

Callers

nothing calls this directly

Calls 2

_arrayEachFunction · 0.85
fnFunction · 0.70

Tested by

no test coverage detected