Skip to content

Fix up operation canceled exceptions #9367

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 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@
<Docs>
<summary>Provides an awaiter for an awaitable (<see cref="T:System.Runtime.CompilerServices.ConfiguredTaskAwaitable" />) object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This type is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This type is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -120,15 +120,15 @@
<Docs>
<summary>Ends the await on the completed task.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This method is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
<exception cref="T:System.Exception">The task completed in a faulted state.</exception>
</Docs>
</Member>
Expand Down Expand Up @@ -179,11 +179,11 @@
<value>
<see langword="true" /> if the task being awaited is completed; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This property is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
Expand Down Expand Up @@ -245,11 +245,11 @@
<param name="continuation">The action to invoke when the await operation completes.</param>
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This method is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
Expand Down Expand Up @@ -312,11 +312,11 @@
<param name="continuation">The action to invoke when the await operation completes.</param>
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This method is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
<Docs>
<summary>Provides an awaiter for an awaitable object(<see cref="T:System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1" />).</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This type is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This type is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -135,15 +135,15 @@
<summary>Ends the await on the completed task.</summary>
<returns>The result of the completed task.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This method is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
<exception cref="T:System.Exception">The task completed in a faulted state.</exception>
</Docs>
</Member>
Expand Down Expand Up @@ -194,11 +194,11 @@
<value>
<see langword="true" /> if the task being awaited has been completed; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This property is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
Expand Down Expand Up @@ -260,11 +260,11 @@
<param name="continuation">The action to invoke when the await operation completes.</param>
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This method is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
Expand Down Expand Up @@ -327,11 +327,11 @@
<param name="continuation">The action to invoke when the await operation completes.</param>
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is intended for compiler use; do not use it directly in your code.
<format type="text/markdown"><![CDATA[

## Remarks
This method is intended for compiler use; do not use it directly in your code.

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
Expand Down
22 changes: 11 additions & 11 deletions xml/System.Runtime.CompilerServices/TaskAwaiter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ This type is intended for compiler use only.
<summary>Ends the wait for the completion of the asynchronous task.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
<exception cref="T:System.Exception">The task completed in a <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state.</exception>
</Docs>
</Member>
Expand Down Expand Up @@ -173,11 +173,11 @@ This type is intended for compiler use only.
<value>
<see langword="true" /> if the task has completed; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This type and its members are intended for use by the compiler.
<format type="text/markdown"><![CDATA[

## Remarks
This type and its members are intended for use by the compiler.

]]></format>
</remarks>
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
Expand Down Expand Up @@ -240,11 +240,11 @@ This type is intended for compiler use only.
<param name="continuation">The action to perform when the wait operation completes.</param>
<summary>Sets the action to perform when the <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object stops waiting for the asynchronous task to complete.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This type and its members are intended for use by the compiler.
<format type="text/markdown"><![CDATA[

## Remarks
This type and its members are intended for use by the compiler.

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
Expand Down
22 changes: 11 additions & 11 deletions xml/System.Runtime.CompilerServices/TaskAwaiter`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ This type is intended for compiler use only.
<returns>The result of the completed task.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter`1" /> object was not properly initialized.</exception>
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
<exception cref="T:System.Exception">The task completed in a <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state.</exception>
</Docs>
</Member>
Expand Down Expand Up @@ -189,11 +189,11 @@ This type is intended for compiler use only.
<value>
<see langword="true" /> if the task has completed; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This type and its members are intended for use by the compiler.
<format type="text/markdown"><![CDATA[

## Remarks
This type and its members are intended for use by the compiler.

]]></format>
</remarks>
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter`1" /> object was not properly initialized.</exception>
Expand Down Expand Up @@ -256,11 +256,11 @@ This type is intended for compiler use only.
<param name="continuation">The action to perform when the wait operation completes.</param>
<summary>Sets the action to perform when the <see cref="T:System.Runtime.CompilerServices.TaskAwaiter`1" /> object stops waiting for the asynchronous task to complete.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This type and its members are intended for use by the compiler.
<format type="text/markdown"><![CDATA[

## Remarks
This type and its members are intended for use by the compiler.

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
Expand Down