Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
53
const
delay = (ms: number) =>
new
Promise((resolve) => setTimeout(resolve, ms))
54
55
// GET all todos
56
app.get(
'/api/todos'
,
async
(_req, res) => {
Callers
1
index.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected