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

Function delay

examples/react-native/offline-transactions/server/index.ts:53–53  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

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

Callers 1

index.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected