MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / retryBackoffMs

Function retryBackoffMs

src/core/agent.ts:44–46  ·  view source on GitHub ↗
(attempt: number)

Source from the content-addressed store, hash-verified

42}
43
44function retryBackoffMs(attempt: number): number {
45 return Math.min(500 * 2 ** attempt, 8000)
46}
47
48/** Sleep that settles early (rejecting with AbortError) if the signal fires, so
49 * a user interrupt isn't stuck waiting out a retry backoff. */

Callers 1

streamWithRetryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected