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

Function trackCleanup

src/bridge/bridgeMain.ts:318–321  ·  view source on GitHub ↗
(p: Promise<unknown>)

Source from the content-addressed store, hash-verified

316 // the shutdown sequence can await them before process.exit().
317 const pendingCleanups = new Set<Promise<unknown>>()
318 function trackCleanup(p: Promise<unknown>): void {
319 pendingCleanups.add(p)
320 void p.finally(() => pendingCleanups.delete(p))
321 }
322 let connBackoff = 0
323 let generalBackoff = 0
324 let connErrorStart: number | null = null

Callers 2

onSessionDoneFunction · 0.85
runBridgeLoopFunction · 0.85

Calls 2

deleteMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected