Skip to content

Commit 1d70b31

Browse files
authored
Fix comment on CancellationTokenRegistration.Token (#35708)
1 parent 9351765 commit 1d70b31

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ public ValueTask DisposeAsync()
5353
default;
5454
}
5555

56-
/// <summary>
57-
/// Gets the <see cref="CancellationToken"/> with which this registration is associated. If the
58-
/// registration isn't associated with a token (such as after the registration has been disposed),
56+
/// <summary>Gets the <see cref="CancellationToken"/> with which this registration is associated.</summary>
57+
/// <remarks>
58+
/// If the registration isn't associated with a token (such as for a registration returned from a call
59+
/// to <see cref="CancellationToken.Register"/> on a token that already had cancellation requested),
5960
/// this will return a default token.
60-
/// </summary>
61+
/// </remarks>
6162
public CancellationToken Token
6263
{
6364
get

0 commit comments

Comments
 (0)