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

fix(zone.js): cancel tasks only when they are scheduled or running #46435

Closed
wants to merge 1 commit into from

Commits on Sep 20, 2022

  1. fix(zone.js): cancel tasks only when they are scheduled or running

    Currently, there's no check if the task (that is being canceled) has the right state.
    Only `scheduled` and `running` tasks can be canceled. If the task has a non-appropriate
    state, then an error will be thrown. Cancelation should not throw an error on an already
    canceled task, e.g. `clearTimeout` does not throw errors when it's called multiple times
    on the same timer.
    
    PR Close angular#45711
    arturovt committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    25f22c2 View commit details
    Browse the repository at this point in the history