[API Proposal]: Add allows ref struct
to ConfiguredCancelableAsyncEnumerable
#112007
Labels
api-ready-for-review
API is ready for review, it is NOT ready for implementation
area-System.Collections
Background and motivation
IAsyncEnumerable<T>
was updated withallows ref struct
in #102795 . However,ConfiguredCancelableAsyncEnumerable<T>
was missed. This blocks usages ofWithCancellation
andConfigureAwait
on such interface instantiations.API Proposal
API Usage
Alternative Designs
Can
ToBlockingEnumerable
be also included? The implementation may need to be tweaked.Risks
Should be low. Both
ConfigureAwait
andWithCancellation
are about theValueTask<bool> MoveNext()
member ofIAsyncEnumerable<T>
, which shouldn't be bothered byref struct
for implementation.The text was updated successfully, but these errors were encountered: