MCPcopy Create free account
hub / github.com/nodejs/nan / done

Function done

examples/async_pi_estimate/addon.js:35–42  ·  view source on GitHub ↗
(err, result)

Source from the content-addressed store, hash-verified

33 var start = Date.now();
34
35 function done (err, result) {
36 total += result;
37
38 // have all the batches finished executing?
39 if (++ended === batches) {
40 printResult('Async', total / batches, Date.now() - start);
41 }
42 }
43
44 // for each batch of work, request an async Estimate() for
45 // a portion of the total number of calculations

Callers

nothing calls this directly

Calls 1

printResultFunction · 0.85

Tested by

no test coverage detected