You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in #2283, there's a potential trap for people migrating from System.Linq.Async to .NET 10's System.Linq.AsyncEnumerable. The old library offered XxxAwait forms in which you could supply async callbacks that don't take cancellation tokens, and it also offered XxxAwaitWithCancellation versions in which the callbacks do take cancellation tokens.
But the new .NET 10 library only supports the second usage model.
So as well as replacing calls to, say, SelectAwait with Select (because System.Linq.AsyncEnumerable uses more modern naming conventions) it is also necessary to modify the callback to accept the additional CancellationToken argument.
While I have fairly low confidence that everyone will read the Obsolete attribute message in enough detail to spot this, I think we should at least try: the message for these methods should make it clear that you need to change the callback signature.