Skip to content

onBackpressureDrop - prevent multiple terminal events #4250

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

Conversation

davidmoten
Copy link
Collaborator

As per discussion in #4242, if an operator maps an onNext emission to an onError emission downstream then it needs be defensive about an onCompleted being sent from upstream even if upstream has been unsubscribed.

Includes three unit tests that failed on the original code and another that gives coverage of the onBackpressureDrop action being called.

@codecov-io
Copy link

codecov-io commented Jul 28, 2016

Current coverage is 84.24% (diff: 100%)

Merging #4250 into 1.x will increase coverage by 0.02%

@@                1.x      #4250   diff @@
==========================================
  Files           266        266          
  Lines         17426      17433     +7   
  Methods           0          0          
  Messages          0          0          
  Branches       2649       2652     +3   
==========================================
+ Hits          14676      14686    +10   
+ Misses         1893       1883    -10   
- Partials        857        864     +7   

Powered by Codecov. Last update b72beff...de52c6b

@akarnokd akarnokd merged commit 41959f7 into ReactiveX:1.x Jul 28, 2016
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