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

Function taskCallback

deps/async.js:360–370  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

358 _forEach(keys, function (k) {
359 var task = (tasks[k] instanceof Function) ? [tasks[k]]: tasks[k];
360 var taskCallback = function (err) {
361 if (err) {
362 callback(err);
363 // stop subsequent errors hitting callback multiple times
364 callback = function () {};
365 }
366 else {
367 completed.push(k);
368 taskComplete();
369 }
370 };
371 var requires = task.slice(0, Math.abs(task.length - 1)) || [];
372 var ready = function () {
373 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…