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

Function send

benchmark/child_process/child-process-read-ipc.js:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3 const len = +process.argv[3];
4 const msg = '.'.repeat(len);
5 const send = () => {
6 while (process.send(msg));
7 // Wait: backlog of unsent messages exceeds threshold
8 setImmediate(send);
9 };
10 send();
11} else {
12 const common = require('../common.js');

Callers 1

Calls 2

sendMethod · 0.65
setImmediateFunction · 0.50

Tested by

no test coverage detected