Skip to content

Conversation

@thomsj
Copy link
Contributor

@thomsj thomsj commented May 27, 2021

Fix ObjectDisposedException comments to state that the exception is
thrown when the CancellationTokenSource of the CancellationToken is
disposed, and not the CancellationToken itself.

Fix `ObjectDisposedException` comments to state that the exception is
thrown when the `CancellationTokenSource` of the `CancellationToken` is
disposed, and not the `CancellationToken` itself.
@ghost
Copy link

ghost commented May 27, 2021

Tagging subscribers to this area: @carlossanlop
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix ObjectDisposedException comments to state that the exception is
thrown when the CancellationTokenSource of the CancellationToken is
disposed, and not the CancellationToken itself.

Author: thomsj
Assignees: -
Labels:

area-System.Threading.Tasks

Milestone: -

Copy link
Contributor

@sharwell sharwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the motivation behind the change, but would consider alternative messaging.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@stephentoub stephentoub merged commit 7cb1017 into dotnet:main May 28, 2021
@runfoapp runfoapp bot mentioned this pull request May 28, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants