MCPcopy Index your code
hub / github.com/TanStack/db / flushPromises

Function flushPromises

packages/db/tests/utils.ts:399–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398// Utility to flush microtasks and promises
399export const flushPromises = () =>
400 new Promise((resolve) => setTimeout(resolve, 0))
401
402/**
403 * Utility to suppress expected unhandled rejections in tests.

Calls

no outgoing calls

Tested by 1

createJoinTestsFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…