MCPcopy 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
396export function sleep(timeout: number): Promise<void> {
397 return new Promise((resolve) => {
398 timeoutManager.setTimeout(resolve, timeout)
399 })
400}
401
402export function replaceData<
403 TData,

Callers 1

runFunction · 0.90

Calls 1

setTimeoutMethod · 0.80

Tested by

no test coverage detected