-
Notifications
You must be signed in to change notification settings - Fork 4
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
setInterval ~13 #78
Comments
Perhaps wrapped, but not wrapped and waited on. |
Fair point though, it should still be run within the Zone. |
Perhaps waited on. It's possible someone starts an interval and then cancels it. Sent from my iPhone
|
We can't really detect that though. I think it's edge-casey enough to ignore, and people can always use |
Why can't we? We should be able to detect if someone calls clearTimeout or clearInterval Sent from my iPhone
|
Ok so I think you mean code like this: var id = setInterval(function(){ ... });
clearInterval(id); Yes, I agree we can support this. We will need to check if it is cleared at end-of-turn or not. I was thinking something like this, which I don't think we should attempt to detect: var count = 0;
var id = setInterval(function(){
if(count === 5) {
clearInterval(id);
}
count++;
}, 500); |
Actually, I'm confused, this scenario: var id = setInterval(function(){ ... });
clearInterval(id); We don't need to wait on this anyways. So what scenario that a setInterval is cleared that we should wait on? |
I'm thinking about things like your previous example:
Lots of animation libraries use Animations might run while the app is bootstrapping. Maybe someone is using My gut tells me to watch it by default, and then let people turn it off. |
jQuery animate uses setInterval: #86 |
Looks like jQuery |
i also use setInterval for polling |
shouldn't setInterval be wrapped as well?
The text was updated successfully, but these errors were encountered: