We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let testSync = () => { let last; let raf = time => { if (last) { console.log(time - last); } last = time; requestAnimationFrame(raf); }; requestAnimationFrame(raf); } testSync(); let testAsync = () => { let last; let raf = async time => { if (last) { let diff = time - last; if (diff <= 5) { console.log('diff', diff); } } last = time; await Promise.resolve(); requestAnimationFrame(raf); }; requestAnimationFrame(raf); }; testAsync(); let testAsync2 = async () => { let last; let raf = time => { if (last) { console.log(time - last); } last = time; }; requestAnimationFrame(raf); await Promise.resolve(); requestAnimationFrame(raf); }; testAsync2(); let testSync3 = () => { let { port1, port2 } = new MessageChannel(); let exec; port1.onmessage = () => { exec?.(); }; let last; let raf = time => { if (last) { console.log(time - last); } last = time; exec = () => { requestAnimationFrame(raf); }; port2.postMessage(null); }; requestAnimationFrame(raf); } testSync3();
The text was updated successfully, but these errors were encountered:
https://issues.chromium.org/issues/41292070
Sorry, something went wrong.
whatwg/html#2569
No branches or pull requests
The text was updated successfully, but these errors were encountered: