GroupByUntil to use BufferUntilSubscriber#1177
GroupByUntil to use BufferUntilSubscriber#1177benjchristensen merged 1 commit intoReactiveX:masterfrom
Conversation
|
RxJava-pull-requests #1090 FAILURE |
What would you do differently that doesn't either require multicasting and re-create the problem of losing messages or unbounded buffering and memory bloat to not lose messages? |
|
I would implement a |
|
I think that would still require buffering everything, as they could change their mind at any time and invoke Can you provide use cases where Here is how I think of o.groupBy(function).skip(1).flatMap(group -> {
if(something) {
return group.map(t -> {
// do stuff
});
} else {
return group.replayAll().map(t -> {
// do stuff
});
}
});In this case, For the skipped one, there is no way for us to know it was skipped, or subscription is just being delayed.
* This currently has temporary unbounded buffers. It needs to become bounded and then do one of two things:
*
* 1) blow up and make the user do something about it
* 2) work with the backpressure solution ... still to be implemented (such as co-routines)For the ones that are subscribed to, under what circumstance would A Also, if we put It would help me if you could provide concrete examples of why |
|
Unfortunately, I can't give concrete use cases for this. I have some expectation of correctness and behavior, but I don't have real requirements coming from real-world use. I think the current |
|
Okay. I fully agree that I didn't quite understand this part ->
Do you mean just in the documentation? |
GroupByUntil to use BufferUntilSubscriber
|
Matches
groupBybehavior. (I still think throwing an error for non-first subscribers is too harsh.)