MCPcopy
hub / github.com/nodejs/undici / closeClientAndServerAsPromise

Function closeClientAndServerAsPromise

test/utils/node-http.js:12–19  ·  view source on GitHub ↗
(client, server)

Source from the content-addressed store, hash-verified

10}
11
12function closeClientAndServerAsPromise (client, server) {
13 const closeClient = util.promisify(client.close.bind(client))
14 const closeServer = util.promisify(server.close.bind(server))
15 return async () => {
16 await closeClient()
17 await closeServer()
18 }
19}
20
21module.exports = {
22 closeServerAsPromise,

Callers 2

http2.jsFile · 0.85
client-dispatch.jsFile · 0.85

Calls 1

closeServerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…