IAsyncEnumerable Interface Change in .NET 10.0 #121792
Replies: 2 comments 1 reply
|
Nothing has changed. There's never a version that accepts cancellation token: https://github.com/dotnet/runtime/blob/v5.0.0/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/IAsyncEnumerator.cs
To cancel the consumer, simply cancel the await'd |
0 replies
|
@huoyaoyuan - It exposes: |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi All,
I noticed that in .NET 10, IAsyncEnumerable's MoveNextAsync now does not accept a cancelation token.
Why was this and what is the right way to cancel/abort moving next?
I did some GROKing but didn't find any clear answers.
All reactions