Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
const
doSleep = (ms: number) =>
new
Promise((r) => setTimeout(r, ms))
9
10
export
const
fetchPost =
async
({
11
postId,
Callers
2
fetchPost
Function · 0.85
fetchUser
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected