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

Function sleep

common/src/util/promise.ts:44–44  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

42}
43
44export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms))
45
46/**
47 * Wraps a promise with a timeout

Callers 3

TerminalDemoFunction · 0.90
handleSignInFunction · 0.90
postWebSearchFunction · 0.90

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected