MCPcopy
hub / github.com/hybridgroup/cylon / callback

Function callback

lib/utils/helpers.js:216–233  ·  view source on GitHub ↗
(err, result)

Source from the content-addressed store, hash-verified

214 if (typeof done !== "function") { done = function() {}; }
215
216 function callback(err, result) {
217 if (error) {
218 return;
219 }
220
221 if (err || error) {
222 error = err;
223 done(err);
224 return;
225 }
226
227 completed++;
228 results.push(result);
229
230 if (completed === total) {
231 done(null, results);
232 }
233 }
234
235 if (!functions.length) { done(); }
236

Callers 5

robot.jsFile · 0.85
config.jsFile · 0.85
mcp.jsFile · 0.85
ping.jsFile · 0.85
loopback.jsFile · 0.85

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected