Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/CodebuffAI/codebuff
/ sleep
Function
sleep
web/scripts/discord/index.ts:36–38 ·
view source on GitHub ↗
(ms: number)
Source
from the content-addressed store, hash-verified
34
}
35
36
function
sleep(ms: number): Promise<void> {
37
return
new
Promise((resolve) => setTimeout(resolve, ms))
38
}
39
40
async
function
shutdown(exitCode: number = 0): Promise<void> {
41
if
(isShuttingDown) {
Callers
1
main
Function · 0.70
Calls
1
setTimeout
Function · 0.85
Tested by
no test coverage detected