-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add Single.finallyDo() #3434
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
Add Single.finallyDo() #3434
Conversation
Could you verify what happens ig the callback throws? One should check null in assembly time (i.e. when calling Single.finallyDo. |
@akarnokd unfortunately very bad thing happens — not only this exception will be swallowed, but also |
👍 |
|
b167a0f
to
6ea879c
Compare
Rebased |
It can be called |
I'd rather it were called doAfterComplete. finallyDo only exists for the Observable and it doesnt follow the do* convention. We could choose to have 2 conventions (naming Single's variant similarly) or deprecate Observable#finallyDo and create Observable#doAfterComplete. I vote for the latter naming them both doAfterComplete. |
I think it would have to be doAfterTermination since it runs on both On Sat, Oct 17, 2015, 2:45 PM Aaron Tull [email protected] wrote:
|
Does anyone have any objection to creating |
👍 |
A bit of consistency in tenses would be nice though. We have
|
I think On Sat, Dec 5, 2015, 01:53 Dave Moten [email protected] wrote:
|
6ea879c
to
c3b6014
Compare
Renamed to |
@artem-zinnatullin would you like to deprecate |
I'd prepare a separate PR after this if you don't mind. On Mon, Dec 7, 2015, 23:13 Aaron Tull [email protected] wrote:
@artem_zin |
Rebase please so we can merge. |
c3b6014
to
8eb7671
Compare
Rebased! |
👍 |
👍 |
👍 |
@akarnokd I've found a problem with
null
action, I'll create separate issue about this soon.