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

Function check

packages/db-collection-e2e/support/global-setup.ts:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }, 10000)
51
52 const check = async (): Promise<void> => {
53 try {
54 const res = await fetch(`${url}/v1/health`)
55 if (res.ok) {
56 const data = (await res.json()) as { status: string }
57 if (data.status === 'active') {
58 clearTimeout(timeout)
59 return resolve()
60 }
61 }
62 setTimeout(() => void check(), 100)
63 } catch {
64 setTimeout(() => void check(), 100)
65 }
66 }
67
68 void check()
69 })

Callers 2

waitForElectricFunction · 0.70
waitForPostgresFunction · 0.70

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected