MCPcopy Create free account
hub / github.com/Noumena-Network/code / cancel

Function cancel

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

Source from the content-addressed store, hash-verified

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

Callers 1

LocationStepFunction · 0.50

Calls 3

nextGenerationFunction · 0.85
deleteMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected