MCPcopy Index your code
hub / github.com/simstudioai/sim / abortFromSignal

Function abortFromSignal

apps/sim/lib/core/utils/stream-limits.ts:102–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 const chunks: Buffer[] = []
101 let totalBytes = 0
102 const abortFromSignal = () => {
103 void reader.cancel(options.signal?.reason).catch(() => {})
104 }
105
106 try {
107 if (options.signal?.aborted) {

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.80

Tested by

no test coverage detected