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

Function done

test/parallel/test-http-expect-continue-reuse-race.js:80–86  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

78 let timeout;
79 const promise = new Promise((resolve, reject) => {
80 function done(err) {
81 clearTimeout(timeout);
82 if (err)
83 reject(err);
84 else
85 resolve();
86 }
87
88 const req = http.request({
89 port,

Callers 1

sendRequestFunction · 0.70

Calls 3

clearTimeoutFunction · 0.50
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected