Created
September 15, 2020 09:45
-
-
Save velotiotech/80b97a2b18b0926b9a601a0ea5fdea2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lowPriorityWork(deadline) { | |
while (deadline.timeRemaining() > 0 && workList.length > 0) | |
performUnitOfWork(); | |
if (workList.length > 0) | |
requestIdleCallback(lowPriorityWork); | |
} |
robert8888
commented
Nov 25, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment