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

Function getSerialCallback

lib/core.js:250–266  ·  view source on GitHub ↗
(fns)

Source from the content-addressed store, hash-verified

248 */
249
250var getSerialCallback = function (fns) {
251 if (!fns.length) {
252 return null;
253 }
254 return function (callback) {
255 var that = this;
256 var bound_fns = [];
257 for (var i = 0, len = fns.length; i < len; i++) {
258 (function (j) {
259 bound_fns.push(function () {
260 return fns[j].apply(that, arguments);
261 });
262 })(i);
263 }
264 return async.series(bound_fns, callback);
265 };
266};
267
268
269/**

Callers 1

wrapGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…