MCPcopy Index your code
hub / github.com/anomalyco/opencode / sleep

Function sleep

packages/opencode/test/fixture/plug-worker.ts:19–23  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

17}
18
19function sleep(ms: number) {
20 return new Promise<void>((resolve) => {
21 setTimeout(resolve, ms)
22 })
23}
24
25function input() {
26 const raw = process.argv[2]

Callers 10

depsFunction · 0.70
rmFunction · 0.50
pullFunction · 0.50
authFileFunction · 0.50
waitForHealthFunction · 0.50
pollDeviceCodeTokenFunction · 0.50
callbackFunction · 0.50
callbackFunction · 0.50
installGitHubAppFunction · 0.50
withRetryFunction · 0.50

Calls

no outgoing calls

Tested by 2

pullFunction · 0.40
authFileFunction · 0.40