MCPcopy 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
36function sleep(ms: number): Promise<void> {
37 return new Promise((resolve) => setTimeout(resolve, ms))
38}
39
40async function shutdown(exitCode: number = 0): Promise<void> {
41 if (isShuttingDown) {

Callers 1

mainFunction · 0.70

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected