MCPcopy
hub / github.com/caolan/async / eachTest

Function eachTest

mocha_test/race.js:8–14  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

6 var finished = 0;
7 var tasks = [];
8 function eachTest(i) {
9 var index = i;
10 return function (next) {
11 finished++;
12 next(null, index);
13 };
14 }
15 for (var i = 0; i < 10; i++) {
16 tasks[i] = eachTest(i);
17 }

Callers 1

race.jsFile · 0.85

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…