Skip to content
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

2.x: add doFinally for handling post-terminal or cancel cleanup #4831

Merged
merged 1 commit into from
Nov 10, 2016

Conversation

akarnokd
Copy link
Member

This PR adds the Flowable.doFinally method that executes an action when the upstream terminates or the downstream cancels (but only once per subscriber). Formerly, one could use doAfterTerminate + doOnCancel together but no support for making sure only one executed the cleanup action.

Based on the feedback, the rest of the base reactive types can get the same operator a bit later.

@akarnokd akarnokd added this to the 2.1 milestone Nov 10, 2016
@codecov-io
Copy link

codecov-io commented Nov 10, 2016

Current coverage is 95.82% (diff: 96.93%)

Merging #4831 into 2.x will increase coverage by 0.12%

@@                2.x      #4831   diff @@
==========================================
  Files           570        571     +1   
  Lines         36723      36821    +98   
  Methods           0          0          
  Messages          0          0          
  Branches       5556       5571    +15   
==========================================
+ Hits          35143      35284   +141   
+ Misses          651        626    -25   
+ Partials        929        911    -18   

Powered by Codecov. Last update ba6f392...c9d2019

@akarnokd akarnokd merged commit 1d9283d into ReactiveX:2.x Nov 10, 2016
@akarnokd akarnokd deleted the DoFinally branch November 10, 2016 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants