MCPcopy Index your code
hub / github.com/codeaashu/claude-code / cancel

Function cancel

src/bridge/jwtUtils.ts:232–241  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

230 }
231
232 function cancel(sessionId: string): void {
233 // Bump generation to invalidate any in-flight async doRefresh.
234 nextGeneration(sessionId)
235 const timer = timers.get(sessionId)
236 if (timer) {
237 clearTimeout(timer)
238 timers.delete(sessionId)
239 }
240 failureCounts.delete(sessionId)
241 }
242
243 function cancelAll(): void {
244 // Bump all generations so in-flight doRefresh calls are invalidated.

Callers 1

LocationStepFunction · 0.85

Calls 3

nextGenerationFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected