CancellationToken

E704380

CancellationToken is a .NET struct used to propagate and observe cancellation requests across asynchronous or long-running operations.

All labels observed (1)

Label Occurrences
CancellationToken canonical 1

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf .NET struct ⓘ
value type ⓘ
associatedWith CancellationTokenSource ⓘ
belongsToPlatform .NET ⓘ
callbackExecutionContextCaptured true ⓘ
canBeDefault true ⓘ
canBeLinkedVia CancellationTokenSource.CreateLinkedTokenSource ⓘ
canBeObservedVia WaitHandle ⓘ
canBePolled true ⓘ
cancellationRequestedIsIdempotent true ⓘ
cannotBeCancelledWithoutSource true ⓘ
defaultValue CancellationToken.None ⓘ
definedInNamespace System.Threading ⓘ
designPattern cooperative cancellation token ⓘ
hasMethod Equals ⓘ
GetHashCode ⓘ
Register ⓘ
ThrowIfCancellationRequested ⓘ
ToString ⓘ
hasProperty CanBeCanceled ⓘ
IsCancellationRequested ⓘ
None ⓘ
WaitHandle ⓘ
hasUnderlyingField reference to CancellationTokenSource ⓘ
immutable true ⓘ
introducedInFramework .NET Framework 4.0 ⓘ
linked to: .NET Framework
isBlittable false ⓘ
isSerializable false in .NET Core and .NET 5+ ⓘ
languageSupport C# ⓘ
F# ⓘ
VB.NET ⓘ
linked to: Visual Basic .NET
obtainedFrom CancellationTokenSource.Token ⓘ
primaryPurpose observe cancellation requests ⓘ
propagate cancellation notifications ⓘ
supportsCallbackRegistration true ⓘ
supportsPattern cooperative cancellation ⓘ
threadSafe true ⓘ
usedBy ASP.NET Core request handling ⓘ
linked to: dotnet/aspnetcore

Entity Framework async methods ⓘ
HttpClient methods ⓘ
IAsyncEnumerable ⓘ
Task ⓘ
Task Parallel Library ⓘ
Task.Run ⓘ
TaskFactory.StartNew ⓘ
linked to: TaskFactory

async methods ⓘ
usedFor asynchronous operations ⓘ
long-running operations ⓘ
usedToCancel operations in libraries without direct cancellation APIs via polling ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

System.Threading → containsType → CancellationToken ⓘ