MCPcopy Create free account
hub / github.com/ampproject/amphtml / flush

Function flush

testing/preact.js:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 * @return {Promise<void>}
54 */
55export async function flush() {
56 flushRaf();
57 while (pendingRender) {
58 await pendingRender();
59 flushRaf();
60 }
61}
62
63preact.options.requestAnimationFrame = flushableRaf;
64preact.options.debounceRendering = flushableRender;

Callers 2

waitRenderedFunction · 0.90

Calls 1

flushRafFunction · 0.85

Tested by

no test coverage detected