MCPcopy 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
381export function sleep(timeout: number): Promise<void> {
382 return new Promise((resolve) => {
383 timeoutManager.setTimeout(resolve, timeout)
384 })
385}
386
387export function replaceData<
388 TData,

Callers 1

runFunction · 0.90

Calls 1

setTimeoutMethod · 0.80

Tested by

no test coverage detected