Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vercel/next.js
/ sleep
Function
sleep
test/e2e/cancel-request/sleep.ts:1–3 ·
view source on GitHub ↗
(ms: number)
Source
from the content-addressed store, hash-verified
1
export
function
sleep(ms: number) {
2
return
new
Promise((res) => setTimeout(res, ms))
3
}
4
5
export
class
Deferred<T> {
6
declare promise: Promise<T>
Callers
3
read
Function · 0.90
prime
Function · 0.90
pull
Function · 0.90
Calls
1
setTimeout
Function · 0.50
Tested by
1
prime
Function · 0.72