-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Added: BO.Latest, fixed: BO.next, BO.mostRecent, BO.toIterable #626
Added: BO.Latest, fixed: BO.next, BO.mostRecent, BO.toIterable #626
Conversation
akarnokd
commented
Dec 16, 2013
- Implemented Latest (Issue Operator: Latest #59)
- Fixed Next and MostRecent to connect to the source observable only when the iterator is asked for.
- Fixed ToIterable.next() not properly handling the completed status (repeated calls to just the next() would simply block on the empty queue).
RxJava-pull-requests #557 SUCCESS |
boolean oHasValue; | ||
Notification.Kind oKind; | ||
T oValue; | ||
Throwable oError; |
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.
Using materialize
to pack the all kinds of messages is better
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.
I don't know. One less memory allocation seemed a good saving.
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.
Using materialize
and Notification
makes the code clearer, doesn't it?
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.
Yes, okay, I'll change things around.
RxJava-pull-requests #559 FAILURE |
RxJava-pull-requests #560 SUCCESS |
Does this capture the essentials, more-or-less, or should I draw up a more https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/B.next.png On Tue, Dec 17, 2013 at 1:11 AM, CloudBees pull request builder plugin <
David M. Gross |
Hmmm... It looks like I don't understand latest(). I figured the second On Tue, Dec 17, 2013 at 12:32 PM, akarnokd [email protected] wrote:
David M. Gross |
@DavidMGross I think your diagram is right. |
The codes look correct and much clearer. |
@DavidMGross this is due to the internal race between placing a value in the |
Thank you for these fixes. |
Added: BO.Latest, fixed: BO.next, BO.mostRecent, BO.toIterable
Added: BO.Latest, fixed: BO.next, BO.mostRecent, BO.toIterable