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

Function backoffMs

web/lib/api/client.ts:35–37  ·  view source on GitHub ↗
(attempt: number)

Source from the content-addressed store, hash-verified

33}
34
35function backoffMs(attempt: number): number {
36 return Math.min(500 * Math.pow(2, attempt), 8_000);
37}
38
39/** Combine multiple AbortSignals into one. Aborts if any source aborts. */
40function combineSignals(...signals: (AbortSignal | undefined)[]): {

Callers 1

fetchWithRetryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected