Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
26
function
flushRaf(ts = performance.now()) {
27
for
(
const
raf of rafs) {
28
raf(ts);
29
}
30
rafs.length = 0;
31
}
32
33
let
pendingRender;
34
Callers
1
flush
Function · 0.85
Calls
1
now
Method · 0.80
Tested by
no test coverage detected