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

Function cleanup

apps/sim/lib/copilot/persistence/tool-confirm/index.ts:125–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 let unsubscribe: (() => void) | null = null
124
125 const cleanup = () => {
126 if (timeoutId) clearTimeout(timeoutId)
127 if (unsubscribe) unsubscribe()
128 abortSignal?.removeEventListener('abort', onAbort)
129 }
130
131 const settle = (value: AsyncConfirmationState | null) => {
132 if (settled) return

Callers 1

settleFunction · 0.70

Calls 1

unsubscribeFunction · 0.85

Tested by

no test coverage detected