File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1074,7 +1074,7 @@ It is an error if the `System.Runtime.CompilerServices.EnumeratorCancellation` a
10741074
10751075- The `EnumeratorCancellation ` attribute is applied to a parameter of a type other than `CancellationToken `,
10761076- or if the `EnumeratorCancellation ` attribute is applied to a parameter on a method that is not an asynchronous iterator ([§15 . 15 ](classes .md #1515-synchronous -and - asynchronous -iterators )),
1077- - or if the `EnumeratorCancellation ` attribute is applied to a parameter on a method that returns an asynchronous enumerable interface ([§15.15.3 ](classes .md #15153- enumerable -interfaces )) rather than an asynchronous enumerator interface ([§15.15.2 ](classes .md #15152 - enumerator - interfaces )).
1077+ - or if the `EnumeratorCancellation ` attribute is applied to a parameter on a method that returns an asynchronous enumerator interface ([§15.15.2 ](classes .md #15152- enumerator -interfaces )) rather than an asynchronous enumerable interface ([§15.15.3 ](classes .md #15153 - enumerable - interfaces )).
10781078
10791079The iterator will not have access to the `CancellationToken ` argument for `GetAsyncEnumerator ` when no attributes have this parameter .
10801080
You can’t perform that action at this time.
0 commit comments