You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Initializes a new instance of the <see cref="CancellationTokenSource"/> class that will be canceled after the specified <see cref="TimeSpan"/>. </summary>
15
+
/// <param name="timeProvider">The <see cref="TimeProvider"/> with which to interpret the <paramref name="delay"/>. </param>
16
+
/// <param name="delay">The time interval to wait before canceling this <see cref="CancellationTokenSource"/>. </param>
17
+
/// <exception cref="ArgumentOutOfRangeException"> The <paramref name="delay"/> is negative and not equal to <see cref="Timeout.InfiniteTimeSpan" /> or greater than maximum allowed timer duration.</exception>
18
+
/// <returns><see cref="CancellationTokenSource"/> that will be canceled after the specified <paramref name="delay"/>.</returns>
19
+
/// <remarks>
20
+
/// <para>
21
+
/// The countdown for the delay starts during the call to the constructor. When the delay expires,
22
+
/// the constructed <see cref="CancellationTokenSource"/> is canceled if it has
23
+
/// not been canceled already.
24
+
/// </para>
25
+
/// <para>
26
+
/// If running on .NET versions earlier than .NET 8.0, there is a constraint when invoking <see cref="CancellationTokenSource.CancelAfter(TimeSpan)"/> on the resultant object.
27
+
/// This action will not terminate the initial timer indicated by <paramref name="delay"/>. However, this restriction does not apply on .NET 8.0 and later versions.
0 commit comments