MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / done

Function done

public/javascripts/async.js:238–248  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

236 if (completed === 0) callback(null);
237
238 function done(err) {
239 completed--;
240 if (err) {
241 callback(err);
242 }
243 // Check key is null in case iterator isn't exhausted
244 // and done resolved synchronously.
245 else if (key === null && completed <= 0) {
246 callback(null);
247 }
248 }
249 };
250
251 async.forEachOfSeries =

Callers 10

nextFunction · 0.70
dropzone.jsFile · 0.70
server.jsFile · 0.50
pollForResultsFunction · 0.50
paginateQueryFunction · 0.50
updateScoreFunction · 0.50
testDatabase.jsFile · 0.50
testJsonLoad.jsFile · 0.50
pl-file-upload.jsFile · 0.50

Calls 2

callbackFunction · 0.85
cbFunction · 0.70

Tested by

no test coverage detected