CancellationToken

E704380

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

Try in SPARQL Jump to: Statements Referenced by

Statements (49)

Predicate Object
instanceOf .NET struct
value type
associatedWith CancellationTokenSource NERFINISHED
belongsToPlatform .NET NERFINISHED
callbackExecutionContextCaptured true
canBeDefault true
canBeLinkedVia CancellationTokenSource.CreateLinkedTokenSource NERFINISHED
canBeObservedVia WaitHandle
canBePolled true
cancellationRequestedIsIdempotent true
cannotBeCancelledWithoutSource true
defaultValue CancellationToken.None
definedInNamespace System.Threading NERFINISHED
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 NERFINISHED
isBlittable false
isSerializable false in .NET Core and .NET 5+
languageSupport C#
F# NERFINISHED
VB.NET NERFINISHED
obtainedFrom CancellationTokenSource.Token
primaryPurpose observe cancellation requests
propagate cancellation notifications
supportsCallbackRegistration true
supportsPattern cooperative cancellation
threadSafe true
usedBy ASP.NET Core request handling NERFINISHED
Entity Framework async methods
HttpClient methods
IAsyncEnumerable
Task
Task Parallel Library NERFINISHED
Task.Run
TaskFactory.StartNew NERFINISHED
async methods
usedFor asynchronous operations
long-running operations
usedToCancel operations in libraries without direct cancellation APIs via polling

Referenced by (1)

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

System.Threading containsType CancellationToken