-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ConfiguredCancelableAsyncEnumerable<'T>
#167
Comments
This is actually very interesting. Reading up on the design decisions for Just checked, this method is part of NetStandard 2.1, so I can actually add it. Another method in those extensions that is very interesting is |
Related discussion: #133 |
This turns out to be much harder to support than I thought. But one of the soon-to-be-made changes is going to be a move to static methods, so we can support adding a cancellation token in each call immediately, removing the need for calling To support this, we either need to overload every single method such that it accepts that type, or we have to go SRTP (and/or with an SRTP overload). Instead, I may consider something like The reason this is non-trivial is because |
Maybe raise an issues on .NET repo about the use of |
That likely wouldn't help. It is a |
When you call
.WithCancellation(cancellationToken)
onIAsyncEnumerable<'T>
you getSystem.Runtime.CompilerServices. ConfiguredCancelableAsyncEnumerable<'T>
which is not currently supported.So that this code does not work
The text was updated successfully, but these errors were encountered: