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 }}
Repository navigation
CancellationTokenExtensions.CombineWith() forgets the original token when combining 3 or more tokens #1442
If more than 2 of the provided tokens (including the original one that the extension method was called on) can be cancelled, the method goes into the least optimized code path here:
This code path forgets about the "original" cancellation token, and only combines the "others". As a result, the resulting combined cancellation token does not react to cancellation of the "original" token.
Repro steps
Described above.
Expected behavior
The resulting combined cancellation token should include and reflect cancellations on the "original" token as well as any "others".
Actual behavior
Instead the resulting combined cancellation token ignores the "original" token and only reflects cancellation on the "others".
Activity
AArnott commentedon Mar 25, 2025
Good catch. Thanks for reporting.
I'll get this fixed.