Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Task.Delay() <exception> XML comments #53392

Merged
merged 3 commits into from
May 28, 2021

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
Member

@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.

thomsj and others added 2 commits May 28, 2021 20:28
Co-authored-by: Sam Harwell <sam@tunnelvisionlabs.com>
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