MCPcopy
hub / github.com/codeaashu/claude-code / cancelAll

Function cancelAll

src/bridge/jwtUtils.ts:243–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 }
242
243 function cancelAll(): void {
244 // Bump all generations so in-flight doRefresh calls are invalidated.
245 for (const sessionId of generations.keys()) {
246 nextGeneration(sessionId)
247 }
248 for (const timer of timers.values()) {
249 clearTimeout(timer)
250 }
251 timers.clear()
252 failureCounts.clear()
253 }
254
255 return { schedule, scheduleFromExpiresIn, cancel, cancelAll }
256}

Callers

nothing calls this directly

Calls 4

nextGenerationFunction · 0.85
keysMethod · 0.80
valuesMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected