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

Function formatDelay

src/bridge/bridgeMain.ts:1619–1621  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

1617}
1618
1619function formatDelay(ms: number): string {
1620 return ms >= 1000 ? `${(ms / 1000).toFixed(1)}s` : `${Math.round(ms)}ms`
1621}
1622
1623/**
1624 * Retry stopWork with exponential backoff (3 attempts, 1s/2s/4s).

Callers 2

runBridgeLoopFunction · 0.85
stopWorkWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected