Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
226
const
sleep = (ms: number): Promise<void> =>
227
new
Promise((resolve) => setTimeout(resolve, ms))
228
229
/**
230
* Calculate delay with exponential backoff and jitter
Callers
1
request
Function · 0.70
Calls
1
setTimeout
Function · 0.85
Tested by
no test coverage detected