MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / sleep

Function sleep

cli/src/utils/codebuff-api.ts:226–227  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

224 * Sleep for a given duration
225 */
226const sleep = (ms: number): Promise<void> =>
227 new Promise((resolve) => setTimeout(resolve, ms))
228
229/**
230 * Calculate delay with exponential backoff and jitter

Callers 1

requestFunction · 0.70

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected