Skip to content

Fix comments on CancellationTokenRegistration.Token #4186

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

Merged
merged 1 commit into from
May 8, 2020

Conversation

stephentoub
Copy link
Member

The comments on CancellationTokenRegistration.Token are incorrect. The Token property will still return the correct token after the registration has been disposed. However, the registration itself may not be associated with a token if it stemmed from a CancellationToken.Register call on a token that already had cancellation requested.

@gewarren gewarren merged commit 54182c4 into master May 8, 2020
@gewarren gewarren deleted the stephentoub-patch-1 branch May 8, 2020 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants