CancellationTokenSource

E697516

CancellationTokenSource is a .NET threading utility class that creates and manages cancellation tokens used to signal and coordinate the cancellation of asynchronous or long-running operations.

All labels observed (3)

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf .NET class
cancellation coordination primitive
threading utility
belongsTo .NET 5+
linked to: .NET (5 and later)

.NET Core
.NET Standard
canLink multiple CancellationToken instances
canSchedule delayed cancellation via CancelAfter
creates CancellationToken
definedIn System.Threading namespace
linked to: System.Threading
hasMethod Cancel()
Cancel(bool)
CancelAfter(TimeSpan)
CancelAfter(int)
CreateLinkedTokenSource(CancellationToken, CancellationToken)
CreateLinkedTokenSource(CancellationToken[])
Dispose()
hasProperty IsCancellationRequested
Token
Token.CanBeCanceled
Token.IsCancellationRequested
hasState can be canceled only once
can be disposed
introducedIn .NET Framework 4.0
linked to: .NET Framework

.NET Task Parallel Library
languageBinding C#
F#
VB.NET
linked to: Visual Basic .NET
onCancel causes OperationCanceledException in many Task-based operations
notifies registered callbacks on associated CancellationToken
sets IsCancellationRequested to true
partOf .NET Base Class Library
requires IDisposable.Dispose for resource cleanup
supports cooperative cancellation pattern
linked cancellation tokens
manual cancellation
time-based cancellation
threadSafeFor requesting cancellation
usedFor coordinating cancellation across multiple tasks
creating CancellationToken instances
signaling cancellation of operations
usedWith PLINQ
linked to: LINQ

Parallel class
Task
Task.Run
Task<TResult>
TaskFactory
async and await

How these facts were elicited

Referenced by (4)

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

System.Threading containsType CancellationTokenSource
System.IDisposable relatedTo System.Threading.CancellationTokenSource
linked to: CancellationTokenSource
CancellationToken associatedWith CancellationTokenSource
CancellationToken canBeLinkedVia CancellationTokenSource.CreateLinkedTokenSource
linked to: CancellationTokenSource