Skip to content

Commit

Permalink
Clarify that that two empty cancellation tokens are always equal (#3787)
Browse files Browse the repository at this point in the history
* Clarify that that two empty cancellation tokens are always equal

Addresses https://github.com/dotnet/corefx/issues/495#issuecomment-323999818

* CR fixes

Fixes comment: dotnet/docs#3787 (review)
  • Loading branch information
ohadschn authored and Ron Petrusha committed Nov 26, 2017
1 parent 07c581a commit f4e5e67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xml/System.Threading/CancellationToken.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@
## Remarks
The cancellation token returned by this property cannot be canceled; that is, its <xref:System.Threading.CancellationToken.CanBeCanceled%2A> property is `false`.
You can also use the C# [default(CancellationToken)](~/docs/csharp/language-reference/keywords/default.md) statement to create an empty cancellation token.
You can also use the C# [default(CancellationToken)](~/docs/csharp/language-reference/keywords/default.md) statement to create an empty cancellation token.
Two empty cancellation tokens are always equal.
]]></format>
</remarks>
Expand Down

0 comments on commit f4e5e67

Please sign in to comment.