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

Function ondrain

test/parallel/test-tls-fast-writing.js:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 write();
61 });
62 function ondrain() {
63 if (!gotDrain) {
64 gotDrain = true;
65 console.log('ok - got drain');
66 }
67 if (gotChunk)
68 process.exit(0);
69 write();
70 }
71
72 function write() {
73 // This needs to return false eventually

Callers 8

testDrainableNoPressureFunction · 0.70
testDrainableNullFunction · 0.70
testOndrainFunction · 0.70
testOndrainNonDrainableFunction · 0.70
testOndrainWaitsForDrainFunction · 0.70

Calls 3

writeFunction · 0.70
logMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected