-
Notifications
You must be signed in to change notification settings - Fork 573
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
Remove System.Linq.Async dependency #1976
Conversation
The source code is basically a copy/paste from System.Linq.Async's implementation: https://github.com/dotnet/reactive/blob/7ad606b3dcd4bb2c6ae9622f8a59db7f8f52aa85/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToEnumerable.cs |
Sorry for force-pushing mid review :( I moved most of the code into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks for adding that remark on code borrowing — was just about to ask for something similar :)
Thanks Brandur! |
Released as 35.11.1. |
This code is a bit weird, they even mentioned it's an anti pattern. Async over sync is often worse than just sync so another option would be to have the !NET45 Just a suggestion... |
Yeah, I was a little bit on the fence about it. The autopagination implementation is complex enough that I'd rather avoid duplicating the method, so I went with this. (Of course right now the implementation is duplicated anyway because of |
Looks like it might cause deadlocks #1946 (comment) |
r? @remi-stripe
cc @stripe/api-libraries
Remove the dependency on System.Linq.Async, by reimplementing the
.ToEnumerable()
method directly.Fixes #1974.