Inconsistent dispose behavior between await using
and await foreach
#72573
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Area-Language Design
Feature - Async Streams
Async Streams
untriaged
Issues and PRs which have not yet been triaged by a lead
Milestone
Execute the following code and examine its output (sharplab):
Observed: Using gives priority to
IAsyncDisposable
implementation, foreach ignoresIAsyncDisposable
implementation.Expected: Both give priority to
IAsyncDisposable
implementationThe text was updated successfully, but these errors were encountered: