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

Function onAbort

apps/sim/lib/core/utils/multipart.ts:133–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 let fileSeen = false
132
133 const onAbort = () => {
134 const reason = signal?.reason instanceof Error ? signal.reason : new Error('Aborted')
135 nodeStream.destroy(reason)
136 bb.destroy()
137 if (!settled) {
138 settled = true
139 reject(reason)
140 }
141 }
142
143 const cleanup = () => {
144 signal?.removeEventListener('abort', onAbort)

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected