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
feature: implement setTimeout, setInterval, clearTimeout, and clearInterval #293
Conversation
6b544fe
to
7de0b1a
Compare
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.
This is looking great! I haven't had to use chrono
much, so this was fun to read through :D
874a89e
to
63aa466
Compare
@elliottt this is ready for another rounds of reviews -- I also used the version of Viceroy which has implementations for the |
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.
This looks good to me!
7550146
to
b079f76
Compare
This is currently blocked on a new version of Viceroy which includes the Once that pull-request is merged and released, we can update our version of Viceroy and should then see all the tests pass on this PR 👍 |
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.65 to 1.0.66. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](dtolnay/anyhow@1.0.65...1.0.66) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Trevor Elliott <telliott@fastly.com>
Co-authored-by: Trevor Elliott <telliott@fastly.com>
…mers` is not empty before calling `repeat_first`
7a406c7
to
4071e00
Compare
Using the new fastly_async_io module we can implement JS timers 🥳
This pull-request implements setTimeout, setInterval, clearTimeout, and clearInterval and adds some interface and basic tests for them. There are also tests in the web-platform-tests that exercise the functions fully, which is why I only needed to write some basic tests.
Currently Viceroy does not have a host implementation for fastly_async_io so for now our tests can only run in production.
Closes #63