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

Function onOnline

benchmark/cluster/echo.js:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 cluster.fork().on('online', onOnline).on('message', onMessage);
42
43 function onOnline() {
44 if (++readies === workers) {
45 bench.start();
46 broadcast();
47 }
48 }
49
50 function broadcast() {
51 if (broadcasts++ === n) {

Callers

nothing calls this directly

Calls 2

broadcastFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected