Skip to content
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

Call function synchronously when timeout is set to zero #22

Open
orslumen opened this issue Apr 8, 2011 · 0 comments
Open

Call function synchronously when timeout is set to zero #22

orslumen opened this issue Apr 8, 2011 · 0 comments

Comments

@orslumen
Copy link

orslumen commented Apr 8, 2011

Well, this is more of an enhancement request than a bug.

I am running my integration tests asynchronously. Next to that I make sure that (most) calls to setTimeout use a timeout of 0 (zero) during the integration tests, to perform well.

But timer.js by default adds all timers and intervals to the queue, regardless of the timeout value.

I would like setTimeout to synchronously call the given function when the timeout is set to zero, see e.g. orslumen@fe499c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant