Skip to content

Commit fb79c4c

Browse files
authored
Fix up operation canceled exceptions (dotnet#9367)
1 parent d3fca79 commit fb79c4c

File tree

4 files changed

+74
-74
lines changed

4 files changed

+74
-74
lines changed

xml/System.Runtime.CompilerServices/ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.xml

+26-26
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
<Docs>
6666
<summary>Provides an awaiter for an awaitable (<see cref="T:System.Runtime.CompilerServices.ConfiguredTaskAwaitable" />) object.</summary>
6767
<remarks>
68-
<format type="text/markdown"><![CDATA[
69-
70-
## Remarks
71-
This type is intended for compiler use; do not use it directly in your code.
72-
68+
<format type="text/markdown"><![CDATA[
69+
70+
## Remarks
71+
This type is intended for compiler use; do not use it directly in your code.
72+
7373
]]></format>
7474
</remarks>
7575
</Docs>
@@ -120,15 +120,15 @@
120120
<Docs>
121121
<summary>Ends the await on the completed task.</summary>
122122
<remarks>
123-
<format type="text/markdown"><![CDATA[
124-
125-
## Remarks
126-
This method is intended for compiler use; do not use it directly in your code.
127-
123+
<format type="text/markdown"><![CDATA[
124+
125+
## Remarks
126+
This method is intended for compiler use; do not use it directly in your code.
127+
128128
]]></format>
129129
</remarks>
130130
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
131-
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
131+
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
132132
<exception cref="T:System.Exception">The task completed in a faulted state.</exception>
133133
</Docs>
134134
</Member>
@@ -179,11 +179,11 @@
179179
<value>
180180
<see langword="true" /> if the task being awaited is completed; otherwise, <see langword="false" />.</value>
181181
<remarks>
182-
<format type="text/markdown"><![CDATA[
183-
184-
## Remarks
185-
This property is intended for compiler use; do not use it directly in your code.
186-
182+
<format type="text/markdown"><![CDATA[
183+
184+
## Remarks
185+
This property is intended for compiler use; do not use it directly in your code.
186+
187187
]]></format>
188188
</remarks>
189189
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
@@ -245,11 +245,11 @@
245245
<param name="continuation">The action to invoke when the await operation completes.</param>
246246
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
247247
<remarks>
248-
<format type="text/markdown"><![CDATA[
249-
250-
## Remarks
251-
This method is intended for compiler use; do not use it directly in your code.
252-
248+
<format type="text/markdown"><![CDATA[
249+
250+
## Remarks
251+
This method is intended for compiler use; do not use it directly in your code.
252+
253253
]]></format>
254254
</remarks>
255255
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
@@ -312,11 +312,11 @@
312312
<param name="continuation">The action to invoke when the await operation completes.</param>
313313
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
314314
<remarks>
315-
<format type="text/markdown"><![CDATA[
316-
317-
## Remarks
318-
This method is intended for compiler use; do not use it directly in your code.
319-
315+
<format type="text/markdown"><![CDATA[
316+
317+
## Remarks
318+
This method is intended for compiler use; do not use it directly in your code.
319+
320320
]]></format>
321321
</remarks>
322322
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>

xml/System.Runtime.CompilerServices/ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.xml

+26-26
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575
<Docs>
7676
<summary>Provides an awaiter for an awaitable object(<see cref="T:System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1" />).</summary>
7777
<remarks>
78-
<format type="text/markdown"><![CDATA[
79-
80-
## Remarks
81-
This type is intended for compiler use; do not use it directly in your code.
82-
78+
<format type="text/markdown"><![CDATA[
79+
80+
## Remarks
81+
This type is intended for compiler use; do not use it directly in your code.
82+
8383
]]></format>
8484
</remarks>
8585
</Docs>
@@ -135,15 +135,15 @@
135135
<summary>Ends the await on the completed task.</summary>
136136
<returns>The result of the completed task.</returns>
137137
<remarks>
138-
<format type="text/markdown"><![CDATA[
139-
140-
## Remarks
141-
This method is intended for compiler use; do not use it directly in your code.
142-
138+
<format type="text/markdown"><![CDATA[
139+
140+
## Remarks
141+
This method is intended for compiler use; do not use it directly in your code.
142+
143143
]]></format>
144144
</remarks>
145145
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
146-
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
146+
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
147147
<exception cref="T:System.Exception">The task completed in a faulted state.</exception>
148148
</Docs>
149149
</Member>
@@ -194,11 +194,11 @@
194194
<value>
195195
<see langword="true" /> if the task being awaited has been completed; otherwise, <see langword="false" />.</value>
196196
<remarks>
197-
<format type="text/markdown"><![CDATA[
198-
199-
## Remarks
200-
This property is intended for compiler use; do not use it directly in your code.
201-
197+
<format type="text/markdown"><![CDATA[
198+
199+
## Remarks
200+
This property is intended for compiler use; do not use it directly in your code.
201+
202202
]]></format>
203203
</remarks>
204204
<exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
@@ -260,11 +260,11 @@
260260
<param name="continuation">The action to invoke when the await operation completes.</param>
261261
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
262262
<remarks>
263-
<format type="text/markdown"><![CDATA[
264-
265-
## Remarks
266-
This method is intended for compiler use; do not use it directly in your code.
267-
263+
<format type="text/markdown"><![CDATA[
264+
265+
## Remarks
266+
This method is intended for compiler use; do not use it directly in your code.
267+
268268
]]></format>
269269
</remarks>
270270
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
@@ -327,11 +327,11 @@
327327
<param name="continuation">The action to invoke when the await operation completes.</param>
328328
<summary>Schedules the continuation action for the task associated with this awaiter.</summary>
329329
<remarks>
330-
<format type="text/markdown"><![CDATA[
331-
332-
## Remarks
333-
This method is intended for compiler use; do not use it directly in your code.
334-
330+
<format type="text/markdown"><![CDATA[
331+
332+
## Remarks
333+
This method is intended for compiler use; do not use it directly in your code.
334+
335335
]]></format>
336336
</remarks>
337337
<exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>

xml/System.Runtime.CompilerServices/TaskAwaiter.xml

+11-11
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This type is intended for compiler use only.
122122
<summary>Ends the wait for the completion of the asynchronous task.</summary>
123123
<remarks>To be added.</remarks>
124124
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
125-
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
125+
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
126126
<exception cref="T:System.Exception">The task completed in a <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state.</exception>
127127
</Docs>
128128
</Member>
@@ -173,11 +173,11 @@ This type is intended for compiler use only.
173173
<value>
174174
<see langword="true" /> if the task has completed; otherwise, <see langword="false" />.</value>
175175
<remarks>
176-
<format type="text/markdown"><![CDATA[
177-
178-
## Remarks
179-
This type and its members are intended for use by the compiler.
180-
176+
<format type="text/markdown"><![CDATA[
177+
178+
## Remarks
179+
This type and its members are intended for use by the compiler.
180+
181181
]]></format>
182182
</remarks>
183183
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
@@ -240,11 +240,11 @@ This type is intended for compiler use only.
240240
<param name="continuation">The action to perform when the wait operation completes.</param>
241241
<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>
242242
<remarks>
243-
<format type="text/markdown"><![CDATA[
244-
245-
## Remarks
246-
This type and its members are intended for use by the compiler.
247-
243+
<format type="text/markdown"><![CDATA[
244+
245+
## Remarks
246+
This type and its members are intended for use by the compiler.
247+
248248
]]></format>
249249
</remarks>
250250
<exception cref="T:System.ArgumentNullException">

xml/System.Runtime.CompilerServices/TaskAwaiter`1.xml

+11-11
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This type is intended for compiler use only.
138138
<returns>The result of the completed task.</returns>
139139
<remarks>To be added.</remarks>
140140
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter`1" /> object was not properly initialized.</exception>
141-
<exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
141+
<exception cref="T:System.OperationCanceledException">The task was canceled.</exception>
142142
<exception cref="T:System.Exception">The task completed in a <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state.</exception>
143143
</Docs>
144144
</Member>
@@ -189,11 +189,11 @@ This type is intended for compiler use only.
189189
<value>
190190
<see langword="true" /> if the task has completed; otherwise, <see langword="false" />.</value>
191191
<remarks>
192-
<format type="text/markdown"><![CDATA[
193-
194-
## Remarks
195-
This type and its members are intended for use by the compiler.
196-
192+
<format type="text/markdown"><![CDATA[
193+
194+
## Remarks
195+
This type and its members are intended for use by the compiler.
196+
197197
]]></format>
198198
</remarks>
199199
<exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter`1" /> object was not properly initialized.</exception>
@@ -256,11 +256,11 @@ This type is intended for compiler use only.
256256
<param name="continuation">The action to perform when the wait operation completes.</param>
257257
<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>
258258
<remarks>
259-
<format type="text/markdown"><![CDATA[
260-
261-
## Remarks
262-
This type and its members are intended for use by the compiler.
263-
259+
<format type="text/markdown"><![CDATA[
260+
261+
## Remarks
262+
This type and its members are intended for use by the compiler.
263+
264264
]]></format>
265265
</remarks>
266266
<exception cref="T:System.ArgumentNullException">

0 commit comments

Comments
 (0)