Skip to content

Commit 73521ce

Browse files
DAXaholicRon Petrusha
authored andcommitted
Task.WaitAll does not throw on empty array (#2605)
1 parent 3485abe commit 73521ce

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

xml/System.Threading.Tasks/Task.xml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,11 +4444,7 @@ Task t Status: RanToCompletion, Result: 42
44444444
</remarks>
44454445
<exception cref="T:System.ObjectDisposedException">One or more of the <see cref="T:System.Threading.Tasks.Task" /> objects in <paramref name="tasks" /> has been disposed.</exception>
44464446
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks" /> argument is <see langword="null" />.</exception>
4447-
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.
4448-
4449-
-or-
4450-
4451-
The <paramref name="tasks" /> argument is an empty array.</exception>
4447+
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
44524448
<exception cref="T:System.AggregateException">At least one of the <see cref="T:System.Threading.Tasks.Task" /> instances was canceled. If a task was canceled, the <see cref="T:System.AggregateException" /> exception contains an <see cref="T:System.OperationCanceledException" /> exception in its <see cref="P:System.AggregateException.InnerExceptions" /> collection.
44534449

44544450
-or-
@@ -4507,11 +4503,7 @@ Task t Status: RanToCompletion, Result: 42
45074503
An exception was thrown during the execution of at least one of the <see cref="T:System.Threading.Tasks.Task" /> instances.</exception>
45084504
<exception cref="T:System.ArgumentOutOfRangeException">
45094505
<paramref name="millisecondsTimeout" /> is a negative number other than -1, which represents an infinite time-out.</exception>
4510-
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.
4511-
4512-
-or-
4513-
4514-
The <paramref name="tasks" /> argument is an empty array.</exception>
4506+
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
45154507
</Docs>
45164508
</Member>
45174509
<Member MemberName="WaitAll">
@@ -4567,11 +4559,7 @@ Task t Status: RanToCompletion, Result: 42
45674559
-or-
45684560

45694561
An exception was thrown during the execution of at least one of the <see cref="T:System.Threading.Tasks.Task" /> instances.</exception>
4570-
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.
4571-
4572-
-or-
4573-
4574-
The <paramref name="tasks" /> argument is an empty array.</exception>
4562+
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
45754563
<exception cref="T:System.ObjectDisposedException">One or more of the <see cref="T:System.Threading.Tasks.Task" /> objects in <paramref name="tasks" /> has been disposed.</exception>
45764564
</Docs>
45774565
</Member>
@@ -4630,11 +4618,7 @@ Task t Status: RanToCompletion, Result: 42
46304618
-or-
46314619

46324620
<paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
4633-
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.
4634-
4635-
-or-
4636-
4637-
The <paramref name="tasks" /> argument is an empty array.</exception>
4621+
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
46384622
</Docs>
46394623
</Member>
46404624
<Member MemberName="WaitAll">
@@ -4696,11 +4680,7 @@ Task t Status: RanToCompletion, Result: 42
46964680
An exception was thrown during the execution of at least one of the <see cref="T:System.Threading.Tasks.Task" /> instances.</exception>
46974681
<exception cref="T:System.ArgumentOutOfRangeException">
46984682
<paramref name="millisecondsTimeout" /> is a negative number other than -1, which represents an infinite time-out.</exception>
4699-
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.
4700-
4701-
-or-
4702-
4703-
The <paramref name="tasks" /> argument is an empty array.</exception>
4683+
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
47044684
<exception cref="T:System.OperationCanceledException">The <paramref name="cancellationToken" /> was canceled.</exception>
47054685
</Docs>
47064686
</Member>

0 commit comments

Comments
 (0)