AsyncLocal<T>
E697536
AsyncLocal<T> is a .NET type that provides ambient data storage local to a given asynchronous control flow, allowing values to flow with async calls without using thread-local storage.
All labels observed (1)
| Label | Occurrences |
|---|---|
| AsyncLocal<T> canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T7897517 — 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.
Target entity: AsyncLocal<T> Context triple: [System.Threading, containsType, AsyncLocal<T>]
-
A.
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.
-
B.
JCache (JSR-107)
JCache (JSR-107) is the standard Java API specification for in-memory caching, defining a common, vendor-neutral way to create, access, and manage caches in Java applications.
-
C.
Jakarta Concurrency
Jakarta Concurrency is a Jakarta EE specification that defines standardized APIs and mechanisms for managing asynchronous and parallel execution in enterprise Java applications.
-
D.
TLB
TLB is a popular paraphrased English version of the Bible aimed at making the text easily understandable in contemporary language.
-
E.
CurrentValueSubject
CurrentValueSubject is a Combine publisher that maintains and emits a current value to new and existing subscribers in Apple’s reactive programming framework.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: AsyncLocal<T> Target entity description: AsyncLocal<T> is a .NET type that provides ambient data storage local to a given asynchronous control flow, allowing values to flow with async calls without using thread-local storage.
-
A.
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.
-
B.
JCache (JSR-107)
JCache (JSR-107) is the standard Java API specification for in-memory caching, defining a common, vendor-neutral way to create, access, and manage caches in Java applications.
-
C.
Jakarta Concurrency
Jakarta Concurrency is a Jakarta EE specification that defines standardized APIs and mechanisms for managing asynchronous and parallel execution in enterprise Java applications.
-
D.
TLB
TLB is a popular paraphrased English version of the Bible aimed at making the text easily understandable in contemporary language.
-
E.
CurrentValueSubject
CurrentValueSubject is a Combine publisher that maintains and emits a current value to new and existing subscribers in Apple’s reactive programming framework.
- F. None of above. chosen
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf |
generic class
ⓘ
reference type ⓘ |
| apiSurface | minimal API with Value property and optional change callback ⓘ |
| assembly |
System.Private.CoreLib (in .NET Core / .NET 5+)
NERFINISHED
ⓘ
System.Threading (in some .NET Core versions) NERFINISHED ⓘ mscorlib (in .NET Framework) NERFINISHED ⓘ |
| behavior |
value does not automatically flow to new threads without ExecutionContext flow
ⓘ
value is captured and restored across async awaits ⓘ |
| category |
concurrency utility
ⓘ
context propagation primitive ⓘ |
| contrastWith | ThreadLocal<T> which is bound to a specific thread ⓘ |
| definedIn | System.Threading namespace NERFINISHED ⓘ |
| design |
uses ExecutionContext to flow values
ⓘ
values are copied when ExecutionContext is captured ⓘ |
| documentation | documented on Microsoft Learn ⓘ |
| genericTypeParameter | T ⓘ |
| hasConstructor |
AsyncLocal()
ⓘ
AsyncLocal(Action<AsyncLocalValueChangedArgs<T>> valueChangedHandler) ⓘ |
| hasEventLikeCallback | ValueChanged ⓘ |
| hasProperty |
Value
ⓘ
ValueChanged ⓘ |
| introducedIn |
.NET Core 1.0
NERFINISHED
ⓘ
.NET Framework 4.6 NERFINISHED ⓘ |
| lifetime | lives as long as the AsyncLocal<T> instance is referenced ⓘ |
| partOf | .NET Base Class Library NERFINISHED ⓘ |
| platform |
.NET 5+
NERFINISHED
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| purpose |
allow values to flow with async calls
ⓘ
avoid reliance on thread-local storage in async code ⓘ provide ambient data storage local to an asynchronous control flow ⓘ |
| relatedTo |
AsyncFlowControl
NERFINISHED
ⓘ
CallContext NERFINISHED ⓘ ExecutionContext NERFINISHED ⓘ ThreadLocal<T> NERFINISHED ⓘ |
| scope |
value flows with async continuations
ⓘ
value is scoped to the current async control flow ⓘ |
| supports |
asynchronous call context data
ⓘ
logical call context propagation ⓘ |
| threadAffinity | not bound to a specific thread ⓘ |
| threadSafety | Value property is thread-safe for simple get and set operations ⓘ |
| usagePattern |
commonly used for ambient configuration or security context
ⓘ
commonly used for logging correlation identifiers ⓘ commonly used for per-request context in ASP.NET Core ⓘ |
| valueAccessibility | Value property is gettable and settable ⓘ |
| valueChangeNotification | ValueChanged callback invoked when value changes in current or parent context ⓘ |
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.
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.
Subject: AsyncLocal<T> Description of subject: AsyncLocal<T> is a .NET type that provides ambient data storage local to a given asynchronous control flow, allowing values to flow with async calls without using thread-local storage.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.