MCPcopy Create free account
hub / github.com/anomalyco/opencode / ready

Function ready

packages/desktop/src/main/server.ts:150–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 })
149
150 const ready = async () => {
151 while (true) {
152 await new Promise((resolve) => setTimeout(resolve, 100))
153 if (await checkHealth(url, password)) {
154 healthy = true
155 return
156 }
157 }
158 }
159
160 await Promise.race([ready(), gone])
161 })()

Callers 2

spawnLocalServerFunction · 0.70
AppFunction · 0.50

Calls 1

checkHealthFunction · 0.85

Tested by

no test coverage detected