Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
type
{ PostData } from
'./types'
2
3
const
doSleep = (ms: number) =>
new
Promise((r) => setTimeout(r, ms))
4
5
export
const
postsAPI = {
6
getPost:
async
({
Callers
1
api.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected