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

Function sleep

packages/query-db-collection/tests/query.test.ts:2432–2434  ·  view source on GitHub ↗
(timeMs: number)

Source from the content-addressed store, hash-verified

2430 const serverTodos: Array<Todo> = []
2431
2432 async function sleep(timeMs: number) {
2433 return new Promise((resolve) => setTimeout(resolve, timeMs))
2434 }
2435
2436 async function createTodos(newTodos: Array<Todo>) {
2437 await sleep(50)

Callers 4

createTodosFunction · 0.70
apiCreateFunction · 0.70
apiDeleteFunction · 0.70
query.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected