mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b618b5aa86
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 #45711 PR Close #46435
54 KiB
54 KiB