-
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
Single and Completable takeUntil() #3708
Comments
|
The completable makes sense. For I'm working on some lifecycle handling for android, and a use case that's worked well in the past is to emit lifecycle events via behaviorsubject and then just |
It seems like forcing an onSuccess or onError defeats the purpose of having a subscription that supports |
The best you can do with |
I see. Would that be something you guys would be open to as PR? Or at least consider making Alternatively, would there be a simple way to potentially swallow that error upstream rather than force the subscriber to handle it? |
We are open for PRs. |
Closing via #3712 |
Actually this just reminded me, would we want |
Maybe, submit a PR and let's see the opinions. |
Will do, though likely not until this weekend or next week |
In reading the original PR for
Single
, I saw Ben was OK with adding atakeUntil(Single/Observable)
operator forSingle
later. I was wondering if this was still the plan, and if you would be open to contributions on this front. Same withCompletable
.One caveat that I've thought of is that there's a potentially conflicting contact with
Single
andtakeUntil()
in the sense thattakeUntil()
callsonCompleted()
in observables, butSingle
s will actually go toonError()
ifonCompleted()
is called before any events are emitted (and by extensiononSuccess()
). Not sure what the clear path would be, but it seems likeSingle
s would have to only unsubscribe and not propagate any notifications, differing fromObservable
s and likelyCompletable
s in this regard.The text was updated successfully, but these errors were encountered: