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

Function invokeCallbackIfDone

test/parallel/test-https-set-timeout-server.js:208–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 let connectionSocket;
207
208 function invokeCallbackIfDone() {
209 if (connectionHandlerInvoked && timeoutHandlerInvoked) {
210 connectionSocket.destroy();
211 server.close();
212 cb();
213 }
214 }
215
216 const server = https.createServer(serverOptions, common.mustCall(
217 (req, res) => {

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…