-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add t.timeout()
#2015
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
Add t.timeout()
#2015
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @novemberborn, thanks a lot for the quick feedback! I've tried to address everything you've mentioned. Please look over the updated changes when you find the time. |
This is great, thanks @dflupu. I've pushed two more tweaks, let me know what you think. |
I'm rather curious why you'd go through the trouble of checking for Timer#refresh. Not that I have anything against it. |
It's the modern API and should be more efficient than recreating the timer, closure, etc. |
Fixes #1565
As suggested in the issue, the timeout is refreshed whenever an assertion is made.
I'm not sure if the typescript or flow definitions need to be updated.