MCPcopy Index your code
hub / github.com/TanStack/query / sleep

Function sleep

packages/query-test-utils/src/sleep.ts:1–4  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

1export const sleep = (ms: number): Promise<void> =>
2 new Promise((resolve) => {
3 setTimeout(resolve, ms)
4 })

Callers 15

sleep.test.tsFile · 0.90
restoreClientFunction · 0.90
PageClass · 0.90
queryFnFunction · 0.90
useQuery.test.tsFile · 0.90
useQueries.test.tsFile · 0.90
useQuery.test-d.tsFile · 0.90
optionsFunction · 0.90

Calls

no outgoing calls

Tested by 15

restoreClientFunction · 0.72
queryFnFunction · 0.72
optionsFunction · 0.72
PageFunction · 0.72
createTestQueryFunction · 0.72
PageFunction · 0.72
Page1Function · 0.72
Page2Function · 0.72
createQueryFunction · 0.72
PageFunction · 0.72
ComponentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…