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

Function cancel

apps/sim/lib/workflows/streaming/streaming.ts:630–641  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

628 }
629 },
630 async cancel(reason) {
631 logger.info(`[${requestId}] Streaming response cancelled`, { reason })
632 timeoutController.abort()
633 timeoutController.cleanup()
634 if (executionId) {
635 try {
636 await cleanupExecutionBase64Cache(executionId)
637 } catch (error) {
638 logger.error(`[${requestId}] Failed to cleanup base64 cache`, { error })
639 }
640 }
641 },
642 })
643}

Callers

nothing calls this directly

Calls 5

infoMethod · 0.80
errorMethod · 0.80
abortMethod · 0.65
cleanupMethod · 0.45

Tested by

no test coverage detected