Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
const
delay = (ms: number) =>
new
Promise((resolve) => setTimeout(resolve, ms))
52
53
// GET all todos
54
app.get(
'/api/todos'
,
async
(_req, res) => {
Callers
4
index.ts
File · 0.70
runTauriPersistedCollectionE2E
Function · 0.50
stopWranglerProcess
Function · 0.50
spawnProcess
Function · 0.50
Calls
no outgoing calls
Tested by
2
stopWranglerProcess
Function · 0.40
spawnProcess
Function · 0.40