MCPcopy
hub / github.com/simstudioai/sim / settle

Function settle

apps/sim/lib/core/utils/multipart.ts:147–152  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

145 }
146
147 const settle = (fn: () => void) => {
148 if (settled) return
149 settled = true
150 cleanup()
151 fn()
152 }
153
154 if (signal?.aborted) {
155 // `destroy()` with no reason emits 'close', not an unhandled 'error'.

Callers 1

readMultipartFunction · 0.70

Calls 2

cleanupFunction · 0.70
fnFunction · 0.50

Tested by

no test coverage detected