MCPcopy Index your code
hub / github.com/TanStack/ai / flushAsync

Function flushAsync

packages/ai-client/tests/client-persistor.test.ts:11–13  ·  view source on GitHub ↗

Resolve after pending micro- and macro-tasks have drained.

()

Source from the content-addressed store, hash-verified

9
10/** Resolve after pending micro- and macro-tasks have drained. */
11function flushAsync(): Promise<void> {
12 return new Promise((resolve) => setTimeout(resolve, 0))
13}
14
15/** A promise with externally accessible resolve/reject. */
16function createDeferred<T>() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected