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

Function flushRaf

testing/preact.js:26–31  ·  view source on GitHub ↗
(ts = performance.now())

Source from the content-addressed store, hash-verified

24}
25
26function flushRaf(ts = performance.now()) {
27 for (const raf of rafs) {
28 raf(ts);
29 }
30 rafs.length = 0;
31}
32
33let pendingRender;
34

Callers 1

flushFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected