Skip to content

Task.WaitAll does not throw on empty array #2605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions xml/System.Threading.Tasks/Task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4444,11 +4444,7 @@ Task t Status: RanToCompletion, Result: 42
</remarks>
<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>
<exception cref="T:System.ArgumentNullException">The <paramref name="tasks" /> argument is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.

-or-

The <paramref name="tasks" /> argument is an empty array.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
<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.

-or-
Expand Down Expand Up @@ -4507,11 +4503,7 @@ Task t Status: RanToCompletion, Result: 42
An exception was thrown during the execution of at least one of the <see cref="T:System.Threading.Tasks.Task" /> instances.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="millisecondsTimeout" /> is a negative number other than -1, which represents an infinite time-out.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.

-or-

The <paramref name="tasks" /> argument is an empty array.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
</Docs>
</Member>
<Member MemberName="WaitAll">
Expand Down Expand Up @@ -4567,11 +4559,7 @@ Task t Status: RanToCompletion, Result: 42
-or-

An exception was thrown during the execution of at least one of the <see cref="T:System.Threading.Tasks.Task" /> instances.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.

-or-

The <paramref name="tasks" /> argument is an empty array.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
<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>
</Docs>
</Member>
Expand Down Expand Up @@ -4630,11 +4618,7 @@ Task t Status: RanToCompletion, Result: 42
-or-

<paramref name="timeout" /> is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.

-or-

The <paramref name="tasks" /> argument is an empty array.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
</Docs>
</Member>
<Member MemberName="WaitAll">
Expand Down Expand Up @@ -4696,11 +4680,7 @@ Task t Status: RanToCompletion, Result: 42
An exception was thrown during the execution of at least one of the <see cref="T:System.Threading.Tasks.Task" /> instances.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="millisecondsTimeout" /> is a negative number other than -1, which represents an infinite time-out.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.

-or-

The <paramref name="tasks" /> argument is an empty array.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="tasks" /> argument contains a null element.</exception>
<exception cref="T:System.OperationCanceledException">The <paramref name="cancellationToken" /> was canceled.</exception>
</Docs>
</Member>
Expand Down