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

Function doSleep

examples/solid/streaming-solid-start2/src/services/posts/api.ts:3–3  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

1import type { PostData } from './types'
2
3const doSleep = (ms: number) => new Promise((r) => setTimeout(r, ms))
4
5export const postsAPI = {
6 getPost: async ({

Callers 1

api.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected