MCPcopy Create free account
hub / github.com/TanStack/ai / settle

Function settle

packages/ai-opencode/src/process/sandbox-server.ts:72–77  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

70 // (a plain `let` gets flow-narrowed to a literal and trips lint).
71 const state = { settled: false }
72 const settle = (fn: () => void): void => {
73 if (state.settled) return
74 state.settled = true
75 clearTimeout(timer)
76 fn()
77 }
78 const diagnostics = (): string =>
79 [stdout, stderr]
80 .map((s) => s.trim())

Callers 1

waitForReadyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected