MCPcopy
hub / github.com/tldraw/tldraw / flushMicrotasks

Function flushMicrotasks

packages/sync-core/src/lib/MicrotaskNotifier.test.ts:5–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4// Helper to flush all pending microtasks
5async function flushMicrotasks() {
6 await Promise.resolve()
7}
8
9describe('MicrotaskNotifier', () => {
10 let consoleErrorSpy: ReturnType<typeof vi.spyOn>

Callers 1

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…