Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
export
const
sleep = (ms: number): Promise<void> =>
2
new
Promise((resolve) => {
3
setTimeout(resolve, ms)
4
})
Callers
15
sleep.test.ts
File · 0.90
restoreClient
Function · 0.90
Page
Class · 0.90
queryFn
Function · 0.90
useQuery.test.ts
File · 0.90
useQueries.test.ts
File · 0.90
useQuery.test-d.ts
File · 0.90
useInfiniteQuery.test-d.tsx
File · 0.90
options
Function · 0.90
useIsFetching.test.ts
File · 0.90
useMutation.test-d.tsx
File · 0.90
useIsMutating.test.ts
File · 0.90
Calls
no outgoing calls
Tested by
15
restoreClient
Function · 0.72
queryFn
Function · 0.72
options
Function · 0.72
Page
Function · 0.72
createTestQuery
Function · 0.72
Page
Function · 0.72
Page1
Function · 0.72
Page2
Function · 0.72
generateInfiniteQueryOptions
Function · 0.72
createQuery
Function · 0.72
Page
Function · 0.72
Component
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…