-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
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
help: Confused with 'requestIdleCallback(workLoop)' #43
Comments
It's the opposite. |
HaHa~, it's my mistake!
So Thank you! Love your amazing project, I will continue learning with it. |
In Step III: Concurrent Mode, I learn that: requestIdleCallback(func) will call the call back function when the browser is idle.
But in workLoop function, that while loop confused me.
My question is: if
shoudYield
is false, it means that the browser is busy, so we should stop calling the next unit of work.But in this while loop, if
shoudYield
is false, the loop will continue and do the next unit of work. Why?The text was updated successfully, but these errors were encountered: