TYPE
EnumeratorCancellationAttribute
Connects the enumeration token to an async iterator parameter.
Formal Syntax & Structure
csharp syntaxcsharp
[EnumeratorCancellation] CancellationToken token = defaultWorking Example
Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.[EnumeratorCancellation] CancellationToken token = default