Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ maybeClose
Function
maybeClose
test/parallel/test-http2-respond-file-push.js:50–55 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
48
49
let
expected = 2;
50
function
maybeClose() {
51
if
(--expected === 0) {
52
server.close();
53
client.close();
54
}
55
}
56
57
const
req = client.request({});
58
Callers
1
test-http2-respond-file-push.js
File · 0.70
Calls
1
close
Method · 0.65
Tested by
no test coverage detected