You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
The code was only disposing/unregistering cancellation token registrations if an exception happened, but not if everything completed successfully. This leaks registrations into the cancellation token for as long as the token is alive.
The code was also allocating a new delegate for CancelIgnoreFailure on every registration. This can be avoided by passing 'this' through as the object state to the registration, letting the compiler cache the delegate for the lambda.
0 commit comments