This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Rewrite timers to be more specification compliant (#7)
* Rewrite timers to be more specification compliant This is more or less a complete rewrite following the specification including leaving links to relevant parts and comments on why we diverge. Among other changes are: 1. timeout/intervals that triggered but weren't executed before they were cleared are *not* executed. 2. setInterval gets rescheduled after it's execution as per the specification. 3. setTimeout/setInterval triggers are ordered based on their invocation as well as the timeout. Again as per the specification. 4. use uint64 for timer IDs so we can go above 4 billion 🚀 Fixes #3 --------- Co-authored-by: Oleg Bespalov <oleg.bespalov@grafana.com>
1 parent
abc1b57
commit 562ce46
Showing
2 changed files
with
279 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters