Skip to content

Commit f772c64

Browse files
Task.Delay correction of the maximum valid delay (#8035)
1 parent c2a3544 commit f772c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Threading.Tasks/Task.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,7 +2403,7 @@ End Sub
24032403

24042404
-or-
24052405

2406-
The <paramref name="delay" /> argument's <see cref="P:System.TimeSpan.TotalMilliseconds" /> property is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
2406+
The <paramref name="delay" /> argument's <see cref="P:System.TimeSpan.TotalMilliseconds" /> property is greater than 4294967294 on .NET 6 and later versions, or <see cref="F:System.Int32.MaxValue" /> on all previous versions.</exception>
24072407
</Docs>
24082408
</Member>
24092409
<Member MemberName="Delay">
@@ -2550,7 +2550,7 @@ Task t Status: RanToCompletion, Result: 42
25502550

25512551
-or-
25522552

2553-
The <paramref name="delay" /> argument's <see cref="P:System.TimeSpan.TotalMilliseconds" /> property is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
2553+
The <paramref name="delay" /> argument's <see cref="P:System.TimeSpan.TotalMilliseconds" /> property is greater than 4294967294 on .NET 6 and later versions, or <see cref="F:System.Int32.MaxValue" /> on all previous versions.</exception>
25542554
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task has been canceled.</exception>
25552555
<exception cref="T:System.ObjectDisposedException">The provided <paramref name="cancellationToken" /> has already been disposed.</exception>
25562556
</Docs>

0 commit comments

Comments
 (0)