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

Function flushPromises

packages/db/tests/effect.test.ts:58–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57/** Wait for microtasks to flush */
58const flushPromises = () => new Promise((resolve) => setTimeout(resolve, 0))
59
60/** Collect events from an effect into an array */
61function collectEvents<T extends object = Record<string, unknown>>(

Callers 1

effect.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected