MCPcopy Index your code
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
363export function sleep(timeout: number): Promise<void> {
364 return new Promise((resolve) => {
365 timeoutManager.setTimeout(resolve, timeout)
366 })
367}
368
369export function replaceData<
370 TData,

Callers 1

runFunction · 0.90

Calls 1

setTimeoutMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…