MCPcopy Index your code
hub / github.com/anomalyco/opencode / closeHttpServer

Function closeHttpServer

packages/opencode/test/plugin/openai-ws.test.ts:874–876  ·  view source on GitHub ↗
(server: HttpServer)

Source from the content-addressed store, hash-verified

872}
873
874function closeHttpServer(server: HttpServer) {
875 return new Promise<void>((resolve, reject) => server.close((error) => (error ? reject(error) : resolve())))
876}
877
878async function waitFor(predicate: () => boolean, message: string) {
879 const started = Date.now()

Callers 1

[Symbol.asyncDispose]Function · 0.85

Calls 3

rejectFunction · 0.50
resolveFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected