MCPcopy Create free account
hub / github.com/nodejs/node / afterSend

Function afterSend

test/parallel/test-cluster-dgram-1.js:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 function afterSend() {
63 sent++;
64 if (sent < NUM_WORKERS * PACKETS_PER_WORKER) {
65 doSend();
66 } else {
67 socket.close();
68 }
69 }
70 }, NUM_WORKERS));
71
72 // Set up event handlers for every worker. Each worker sends a message when

Callers

nothing calls this directly

Calls 2

doSendFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected