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:396–400 ·
view source on GitHub ↗
(timeout: number)
Source
from the content-addressed store, hash-verified
394
}
395
396
export
function
sleep(timeout: number): Promise<void> {
397
return
new
Promise((resolve) => {
398
timeoutManager.setTimeout(resolve, timeout)
399
})
400
}
401
402
export
function
replaceData<
403
TData,
Callers
1
run
Function · 0.90
Calls
1
setTimeout
Method · 0.80
Tested by
no test coverage detected