-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Adjust pattern-based lookup for await foreach #32111
Copy link
Copy link
Closed
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersArea-Language DesignFeature - Async StreamsAsync StreamsAsync Streams
Milestone
Description
Pattern-based 'await foreach' should find 'GetAsyncEnumerator' and 'MoveNextAsync' by binding them with no arguments.
So GetAsyncEnumerator(params int[] x) or GetAsyncEnumerator(int optional = 0) would be recognized, in addition to GetAsyncEnumerator() and GetAsyncEnumerator(CancellationToken token = default).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersArea-Language DesignFeature - Async StreamsAsync StreamsAsync Streams