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

Function spin

examples/solid/solid-start-streaming/src/routes/batch-methods.tsx:9–14  ·  view source on GitHub ↗
(milliseconds: number)

Source from the content-addressed store, hash-verified

7}
8
9function spin(milliseconds: number) {
10 const start = performance.now()
11 while (performance.now() - start <= milliseconds) {
12 // do nothing
13 }
14}
15
16async function sayHello(name: string) {
17 console.info('[api] sayHello.start')

Callers 1

sayHelloFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected