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
This entity first appeared as the object of triple T7897479 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
NED1
Entity disambiguation (via context triple)
gpt-5-mini-2025-08-07
Target entity: CancellationToken Context triple: [System.Threading, containsType, CancellationToken]
-
A.
CancellationTokenSource
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.
-
B.
AnyCancellable
AnyCancellable is a type in Apple’s Combine framework that represents a token you can store and use to cancel an active subscription to a publisher.
-
C.
RegisteredWaitHandle
RegisteredWaitHandle is a .NET threading class that represents a handle to a registered wait operation, allowing callbacks to be invoked when a WaitHandle is signaled or a timeout occurs.
-
D.
EventWaitHandle
EventWaitHandle is a .NET synchronization primitive that allows threads or processes to signal and wait for events, coordinating execution flow in concurrent applications.
-
E.
ThreadAbortException
ThreadAbortException is a special .NET exception type that is thrown to terminate a thread, typically via Thread.Abort, and can be caught but is automatically rethrown by the runtime.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
NED2
Entity disambiguation (via description)
gpt-5-mini-2025-08-07
Target entity: CancellationToken Target entity description: CancellationToken is a .NET struct used to propagate and observe cancellation requests across asynchronous or long-running operations.
-
A.
CancellationTokenSource
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.
-
B.
AnyCancellable
AnyCancellable is a type in Apple’s Combine framework that represents a token you can store and use to cancel an active subscription to a publisher.
-
C.
RegisteredWaitHandle
RegisteredWaitHandle is a .NET threading class that represents a handle to a registered wait operation, allowing callbacks to be invoked when a WaitHandle is signaled or a timeout occurs.
-
D.
EventWaitHandle
EventWaitHandle is a .NET synchronization primitive that allows threads or processes to signal and wait for events, coordinating execution flow in concurrent applications.
-
E.
ThreadAbortException
ThreadAbortException is a special .NET exception type that is thrown to terminate a thread, typically via Thread.Abort, and can be caught but is automatically rethrown by the runtime.
- F. None of above. chosen
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 ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
Instruction
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Input
Subject: CancellationToken Description of subject: CancellationToken is a .NET struct used to propagate and observe cancellation requests across asynchronous or long-running operations.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.