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:381–385 ·
view source on GitHub ↗
(timeout: number)
Source
from the content-addressed store, hash-verified
379
}
380
381
export
function
sleep(timeout: number): Promise<void> {
382
return
new
Promise((resolve) => {
383
timeoutManager.setTimeout(resolve, timeout)
384
})
385
}
386
387
export
function
replaceData<
388
TData,
Callers
1
run
Function · 0.90
Calls
1
setTimeout
Method · 0.80
Tested by
no test coverage detected