62 references to Canceled
Microsoft.AspNetCore.Components (5)
ComponentBase.cs (3)
279if (task.Status != TaskStatus.RanToCompletion && task.Status != TaskStatus.Canceled) 321task.Status != TaskStatus.Canceled; 359task.Status != TaskStatus.Canceled;
RenderTree\Renderer.cs (2)
680case TaskStatus.Canceled: 1013if (task.Status == TaskStatus.RanToCompletion || task.Status == TaskStatus.Canceled)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
StampedeTests.cs (2)
227Assert.Equal(TaskStatus.Canceled, result.Status); 313Assert.Equal(TaskStatus.Canceled, result.Status);
System.IO.Compression.Brotli (5)
System\IO\Compression\dec\BrotliStream.Decompress.cs (2)
128/// <para>If the operation is canceled before it completes, the returned task contains the <see cref="System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="System.Threading.Tasks.Task.Status" /> property.</para></remarks> 141/// <para>If the operation is canceled before it completes, the returned task contains the <see cref="System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="System.Threading.Tasks.Task.Status" /> property.</para></remarks>
System\IO\Compression\enc\BrotliStream.Compress.cs (3)
130/// <para>If the operation is canceled before it completes, the returned task contains the <see cref="System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="System.Threading.Tasks.Task.Status" /> property.</para></remarks> 143/// <para>If the operation is canceled before it completes, the returned task contains the <see cref="System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="System.Threading.Tasks.Task.Status" /> property.</para></remarks> 214/// <remarks>If the operation is canceled before it completes, the returned task contains the <see cref="System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="System.Threading.Tasks.Task.Status" /> property.</remarks>
System.Net.Http (2)
System\Net\Http\DiagnosticsHandler.cs (1)
172taskStatus = TaskStatus.Canceled;
System\Net\Http\StreamToStreamCopy.cs (1)
74case TaskStatus.Canceled:
System.Private.CoreLib (45)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (1)
139case TaskStatus.Canceled:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConfigureAwaitOptions.cs (1)
31/// in the <see cref="TaskStatus.Faulted"/> or <see cref="TaskStatus.Canceled"/> state.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (7)
1429else if ((sf & (int)TaskStateFlags.Canceled) != 0) rval = TaskStatus.Canceled; 1521/// <see cref="TaskStatus.Canceled">Canceled</see>. 1723/// <see cref="TaskStatus.Canceled">Canceled</see>. 1729/// <see cref="TaskStatus.Canceled">Canceled</see>. 3077TaskStatus.Canceled => TrySetCanceled(completingTask.CancellationToken, completingTask.GetCancellationExceptionDispatchInfo()), 7667case TaskStatus.Canceled: 7695case TaskStatus.Canceled:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (18)
85/// <see cref="TaskStatus.Canceled"/>. 103/// <see cref="TaskStatus.Canceled"/>. 122/// <see cref="TaskStatus.Canceled"/>. 150/// <see cref="TaskStatus.Canceled"/>. 195/// <see cref="TaskStatus.Canceled"/>. 214/// <see cref="TaskStatus.Canceled"/>. 228/// Transitions the underlying <see cref="Task{TResult}"/> into the <see cref="TaskStatus.Canceled"/> state. 234/// <see cref="TaskStatus.Canceled"/>. 239/// Transitions the underlying <see cref="Task{TResult}"/> into the <see cref="TaskStatus.Canceled"/> state 247/// <see cref="TaskStatus.Canceled"/>. 258/// Attempts to transition the underlying <see cref="Task{TResult}"/> into the <see cref="TaskStatus.Canceled"/> state. 265/// <see cref="TaskStatus.Canceled"/>. 270/// Attempts to transition the underlying <see cref="Task{TResult}"/> into the <see cref="TaskStatus.Canceled"/> state. 278/// <see cref="TaskStatus.Canceled"/>. 299/// <see cref="TaskStatus.RanToCompletion"/>, <see cref="TaskStatus.Faulted"/>, or <see cref="TaskStatus.Canceled"/>. 303/// <see cref="TaskStatus.RanToCompletion"/>, <see cref="TaskStatus.Faulted"/>, or <see cref="TaskStatus.Canceled"/>. 322/// <see cref="TaskStatus.RanToCompletion"/>, <see cref="TaskStatus.Faulted"/>, or <see cref="TaskStatus.Canceled"/>. 340case TaskStatus.Canceled:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (18)
85/// <see cref="TaskStatus.Canceled"/>. 103/// <see cref="TaskStatus.Canceled"/>. 122/// <see cref="TaskStatus.Canceled"/>. 150/// <see cref="TaskStatus.Canceled"/>. 194/// <see cref="TaskStatus.Canceled"/>. 212/// <see cref="TaskStatus.Canceled"/>. 226/// Transitions the underlying <see cref="Tasks.Task"/> into the <see cref="TaskStatus.Canceled"/> state. 232/// <see cref="TaskStatus.Canceled"/>. 237/// Transitions the underlying <see cref="Tasks.Task"/> into the <see cref="TaskStatus.Canceled"/> state 245/// <see cref="TaskStatus.Canceled"/>. 256/// Attempts to transition the underlying <see cref="Tasks.Task"/> into the <see cref="TaskStatus.Canceled"/> state. 263/// <see cref="TaskStatus.Canceled"/>. 268/// Attempts to transition the underlying <see cref="Tasks.Task"/> into the <see cref="TaskStatus.Canceled"/> state. 276/// <see cref="TaskStatus.Canceled"/>. 297/// <see cref="TaskStatus.RanToCompletion"/>, <see cref="TaskStatus.Faulted"/>, or <see cref="TaskStatus.Canceled"/>. 301/// <see cref="TaskStatus.RanToCompletion"/>, <see cref="TaskStatus.Faulted"/>, or <see cref="TaskStatus.Canceled"/>. 320/// <see cref="TaskStatus.RanToCompletion"/>, <see cref="TaskStatus.Faulted"/>, or <see cref="TaskStatus.Canceled"/>. 338case TaskStatus.Canceled:
System.Threading.Tasks.Dataflow (3)
Blocks\TransformManyBlock.cs (2)
289goto case TaskStatus.Canceled; 290case TaskStatus.Canceled:
Internal\DataflowEtwProvider.cs (1)
157Canceled = (int)TaskStatus.Canceled