MCPcopy Create free account
hub / github.com/TanStack/query / doSleep

Function doSleep

examples/solid/solid-start-streaming/src/utils/api.ts:8–8  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

6}
7
8const doSleep = (ms: number) => new Promise((r) => setTimeout(r, ms))
9
10export const fetchPost = async ({
11 postId,

Callers 2

fetchPostFunction · 0.85
fetchUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected