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.

Jump to: Statements Referenced by

Statements (48)

Predicate Object
instanceOf .NET class
cancellation coordination primitive
threading utility
belongsTo .NET 5+ NERFINISHED
.NET Core NERFINISHED
.NET Standard NERFINISHED
canLink multiple CancellationToken instances
canSchedule delayed cancellation via CancelAfter
creates CancellationToken
definedIn System.Threading namespace NERFINISHED
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 NERFINISHED
.NET Task Parallel Library NERFINISHED
languageBinding C#
F# NERFINISHED
VB.NET NERFINISHED
onCancel causes OperationCanceledException in many Task-based operations
notifies registered callbacks on associated CancellationToken
sets IsCancellationRequested to true
partOf .NET Base Class Library NERFINISHED
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 NERFINISHED
Parallel class
Task
Task.Run NERFINISHED
Task<TResult>
TaskFactory NERFINISHED
async and await

Referenced by (1)

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

System.Threading containsType CancellationTokenSource