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

Function cleanup

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

Source from the content-addressed store, hash-verified

163 }
164
165 const cleanup = () => {
166 stream.off('data', onData)
167 stream.off('end', onEnd)
168 stream.off('error', onError)
169 options.signal?.removeEventListener('abort', onAbort)
170 }
171
172 const onAbort = () => {
173 if ('destroy' in stream && typeof stream.destroy === 'function') {

Callers 1

finishFunction · 0.70

Calls 1

offMethod · 0.80

Tested by

no test coverage detected