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

Function write

test/pummel/test-net-pause.js:32–41  ·  view source on GitHub ↗
(j)

Source from the content-addressed store, hash-verified

30
31const server = net.createServer((connection) => {
32 function write(j) {
33 if (j >= N) {
34 connection.end();
35 return;
36 }
37 setTimeout(() => {
38 connection.write('C');
39 write(j + 1);
40 }, 10);
41 }
42 write(0);
43});
44

Callers 1

test-net-pause.jsFile · 0.70

Calls 3

setTimeoutFunction · 0.50
endMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…