MCPcopy Index your code
hub / github.com/caolan/nodeunit / taskCallback

Function taskCallback

examples/browser/nodeunit.js:853–863  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

851 _forEach(keys, function (k) {
852 var task = (tasks[k] instanceof Function) ? [tasks[k]]: tasks[k];
853 var taskCallback = function (err) {
854 if (err) {
855 callback(err);
856 // stop subsequent errors hitting callback multiple times
857 callback = function () {};
858 }
859 else {
860 completed.push(k);
861 taskComplete();
862 }
863 };
864 var requires = task.slice(0, Math.abs(task.length - 1)) || [];
865 var ready = function () {
866 return _reduce(requires, function (a, x) {

Callers

nothing calls this directly

Calls 1

taskCompleteFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…