Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
import
type
{ PendingMutation } from
'@tanstack/db'
8
9
const
flushMicrotasks = () =>
new
Promise((resolve) => setTimeout(resolve, 0))
10
11
const
waitUntil =
async
(
12
predicate: () => boolean | Promise<boolean>,
Callers
1
offline-e2e.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected