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

Function flushMicrotasks

packages/offline-transactions/tests/offline-e2e.test.ts:9–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import type { PendingMutation } from '@tanstack/db'
8
9const flushMicrotasks = () => new Promise((resolve) => setTimeout(resolve, 0))
10
11const waitUntil = async (
12 predicate: () => boolean | Promise<boolean>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected