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

Function onsendMulti

benchmark/dgram/array-vs-concat.js:42–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 }
41
42 function onsendMulti() {
43 if (sent++ % n === 0) {
44 // The setImmediate() is necessary to have event loop progress on OSes
45 // that only perform synchronous I/O on nonblocking UDP sockets.
46 setImmediate(() => {
47 for (let i = 0; i < n; i++) {
48 socket.send(chunk, PORT, '127.0.0.1', onsend);
49 }
50 });
51 }
52 }
53
54 socket.on('listening', () => {
55 bench.start();

Callers

nothing calls this directly

Calls 2

sendMethod · 0.65
setImmediateFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…