MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / sleep

Function sleep

packages/web/src/lib/utils.ts:628–628  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

626}
627
628const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
629
630// Retry only on transient failures: network errors, 5xx responses, and the
631// two 4xx codes that are known to be retry-safe (408 Request Timeout, 429

Callers 1

fetchWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected