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

Function makeCallback

deps/async.js:486–497  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

484
485 async.iterator = function (tasks) {
486 var makeCallback = function (index) {
487 var fn = function () {
488 if (tasks.length) {
489 tasks[index].apply(null, arguments);
490 }
491 return fn.next();
492 };
493 fn.next = function () {
494 return (index < tasks.length - 1) ? makeCallback(index + 1): null;
495 };
496 return fn;
497 };
498 return makeCallback(0);
499 };
500

Callers 1

async.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…