-
Notifications
You must be signed in to change notification settings - Fork 8
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
invalid timer's Reset result value #3
Comments
Reset must return false when timer expired. |
This closes Issue #3. It also fixes a race condition in setting the .stopped value for the timer.
Thank you for your report. I also found a race condition; the tick is sent down the channel and then the .stopped flag is updated. It needs to be the other way around. I've released a v1.0.1 to address this. |
Also, thanks for letting me know somebody else uses this. :) I still use it on almost every project, so I know it's useful to at least some degree. I've examined using the ability to export types to make a true drop-in to the time library with the exact same API, but I can't work out any way to avoid having to label the various different uses of the time functions one way or another. |
Stress test to reproduce:
Result:
The text was updated successfully, but these errors were encountered: