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

Function finish

packages/app/src/context/global-sync/bootstrap.ts:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 return new Promise<void>((resolve) => {
38 let done = false
39 const finish = () => {
40 if (done) return
41 done = true
42 resolve()
43 }
44 const timer = setTimeout(finish, 50)
45 if (typeof requestAnimationFrame !== "function") return
46 requestAnimationFrame(() => {

Callers 1

waitForPaintFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected