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

perf(ext/web): optimize timer cancellation #16316

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

littledivy
Copy link
Member

Towards #16315

It created a bunch of Error objects and rejected the promise. This patch changes op_sleep to resolve with true if it was cancelled.

ext/web/timers.rs Outdated Show resolved Hide resolved
@littledivy littledivy merged commit 4c9dd33 into denoland:main Oct 17, 2022
bartlomieju pushed a commit that referenced this pull request Oct 17, 2022
Towards #16315 

It created a bunch of Error objects and rejected the promise. This patch
changes `op_sleep` to resolve with `true` if it was cancelled.
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

Successfully merging this pull request may close these issues.

None yet

3 participants