MCPcopy Create free account
hub / github.com/simstudioai/sim / settle

Function settle

apps/sim/lib/copilot/persistence/tool-confirm/index.ts:131–136  ·  view source on GitHub ↗
(value: AsyncConfirmationState | null)

Source from the content-addressed store, hash-verified

129 }
130
131 const settle = (value: AsyncConfirmationState | null) => {
132 if (settled) return
133 settled = true
134 cleanup()
135 resolve(value)
136 }
137
138 const onAbort = () => settle(null)
139

Callers 2

onAbortFunction · 0.70
waitForToolConfirmationFunction · 0.70

Calls 2

cleanupFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected