MCPcopy Create free account
hub / github.com/TanStack/db / delay

Function delay

examples/electron/offline-first/server/index.ts:51–51  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

49
50// Simulate network delay
51const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))
52
53// GET all todos
54app.get('/api/todos', async (_req, res) => {

Callers 4

index.tsFile · 0.70
stopWranglerProcessFunction · 0.50
spawnProcessFunction · 0.50

Calls

no outgoing calls

Tested by 2

stopWranglerProcessFunction · 0.40
spawnProcessFunction · 0.40