-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Observable comparers for SortAndBind #884
Conversation
Bottom line is it's recommended when doing subscriptions within operators.
In a practical sense, I tried to write up a small test scenario that shows this in action, and after an hour, I gave up. There's a LOT of baked-in safeguards within RX that normally make |
where TObject : notnull | ||
where TKey : notnull | ||
{ | ||
// NB: Either comparer or comparerChanged will be used, but not both. |
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.
NB?
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.
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.
TIL
|
||
// sort is not returning uniqueness | ||
if (insertIndex < 0) | ||
private int GetInsertPositionBinary(TObject item) |
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.
Wow, this diff is obnoxiously terrible in GitHub, BTW. The syntax-aware diff in VS is so much better. Never seen a case this bad before.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Add IObservable<IComparer> option to SortAndBind to enable changing the sort order.
This represents the completion of SortAndBind.
@dwcullop / @JakenVeina
I know there were some previous conversations about
SubscribeSafe
but I skipped over that. My question is why has the pattern of.SubscribeSafe(Observer.Create...
been introduced and when should it be applied? I ask because I usedSubscribeSafe(observer)
in this PR