MCPcopy
hub / github.com/coder/code-server / close

Function close

test/utils/helpers.ts:163–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 })
162
163 async function close() {
164 await Promise.all(
165 servers.map(
166 (server) =>
167 new Promise<void>((resolve, reject) => {
168 server.close((err) => {
169 if (err) {
170 reject(err)
171 return
172 }
173 resolve()
174 })
175 }),
176 ),
177 )
178 }
179 const fakeVscodeSockets = {
180 close,
181 once: () => {

Callers 1

listenOnFunction · 0.85

Calls 2

resolveFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected