Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ flushPromises
Function
flushPromises
packages/query-db-collection/tests/query.test.ts:44–44 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
43
// Helper to advance timers and allow microtasks to flush
44
const
flushPromises = () =>
new
Promise((resolve) => setTimeout(resolve, 0))
45
46
function
createInMemorySyncMetadataApi<
47
TKey extends string | number = string | number,
Callers
1
query.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected