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 |
Beta Was this translation helpful? Give feedback.
-
|
@huoyaoyuan - It exposes: |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions