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

Function invokeCallbackIfDone

test/parallel/test-http-set-timeout-server.js:185–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 let connectionSocket;
184
185 function invokeCallbackIfDone() {
186 if (connectionHandlerInvoked && timeoutHandlerInvoked) {
187 connectionSocket.destroy();
188 server.close();
189 cb();
190 }
191 }
192
193 const server = http.createServer(common.mustCall((req, res) => {
194 req.on('timeout', common.mustNotCall());

Callers 1

Calls 3

cbFunction · 0.70
closeMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…