mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Remove the registered pending task when an interceptor chain throws before
returning an Observable. Preserve the original error for the caller and keep
finalize responsible for completion, Observable errors, and cancellation.
Apply cleanup to both the outer HTTP handler and the legacy interceptor
adapter, since each registers its own task that can otherwise block stability.
Add tests for synchronous errors, Observable errors, completion, and
unsubscribe with both functional and legacy interceptors.
Closes #71953
(cherry picked from commit 818742755c)