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

Function getCancellationChannel

apps/sim/lib/execution/cancellation.ts:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26const _g = globalThis as CancellationGlobal
27
28export function getCancellationChannel(): PubSubChannel<ExecutionCancelEvent> {
29 if (!_g._executionCancelChannel) {
30 _g._executionCancelChannel = createPubSubChannel<ExecutionCancelEvent>({
31 channel: EXECUTION_CANCEL_CHANNEL,
32 label: 'execution-cancel',
33 })
34 }
35 return _g._executionCancelChannel
36}
37
38export function isRedisCancellationEnabled(): boolean {
39 return getRedisClient() !== null

Callers 3

markExecutionCancelledFunction · 0.85

Calls 1

createPubSubChannelFunction · 0.90

Tested by

no test coverage detected