Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ sleep
Function
sleep
packages/query-core/src/utils.ts:363–367 ·
view source on GitHub ↗
(timeout: number)
Source
from the content-addressed store, hash-verified
361
}
362
363
export
function
sleep(timeout: number): Promise<void> {
364
return
new
Promise((resolve) => {
365
timeoutManager.setTimeout(resolve, timeout)
366
})
367
}
368
369
export
function
replaceData<
370
TData,
Callers
1
run
Function · 0.90
Calls
1
setTimeout
Method · 0.80
Tested by
no test coverage detected