Skip to content

Commit

Permalink
Update CancellationToken.cs (#66399)
Browse files Browse the repository at this point in the history
Remove ObjectDisposedException from doc since the method doesn't throw the exception.
  • Loading branch information
AaronRobinsonMSFT committed Mar 9, 2022
1 parent c3ef9da commit 4e75015
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ private CancellationTokenRegistration Register(Delegate callback!!, object? stat
/// </code>
/// </remarks>
/// <exception cref="System.OperationCanceledException">The token has had cancellation requested.</exception>
/// <exception cref="System.ObjectDisposedException">The associated <see
/// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
public void ThrowIfCancellationRequested()
{
if (IsCancellationRequested)
Expand Down

0 comments on commit 4e75015

Please sign in to comment.