Skip to content

Commit 4e75015

Browse files
Update CancellationToken.cs (#66399)
Remove ObjectDisposedException from doc since the method doesn't throw the exception.
1 parent c3ef9da commit 4e75015

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs

-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ private CancellationTokenRegistration Register(Delegate callback!!, object? stat
351351
/// </code>
352352
/// </remarks>
353353
/// <exception cref="System.OperationCanceledException">The token has had cancellation requested.</exception>
354-
/// <exception cref="System.ObjectDisposedException">The associated <see
355-
/// cref="System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
356354
public void ThrowIfCancellationRequested()
357355
{
358356
if (IsCancellationRequested)

0 commit comments

Comments
 (0)