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

Function sleep

web/lib/api/client.ts:31–33  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

29}
30
31function sleep(ms: number): Promise<void> {
32 return new Promise((resolve) => setTimeout(resolve, ms));
33}
34
35function backoffMs(attempt: number): number {
36 return Math.min(500 * Math.pow(2, attempt), 8_000);

Callers 1

fetchWithRetryMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected