MCPcopy Index your code
hub / github.com/nodejs/node / oncount

Function oncount

lib/net.js:2578–2586  ·  view source on GitHub ↗
(err, count)

Source from the content-addressed store, hash-verified

2576 let total = this._connections;
2577
2578 function oncount(err, count) {
2579 if (err) {
2580 left = -1;
2581 return end(err);
2582 }
2583
2584 total += count;
2585 if (--left === 0) return end(null, total);
2586 }
2587
2588 for (let n = 0; n < this._workers.length; n++) {
2589 this._workers[n].getConnections(oncount);

Callers

nothing calls this directly

Calls 1

endFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…