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

doOnEach - reduce allocations, report to RxJavaHooks #4262

Merged
merged 1 commit into from
Jul 31, 2016

Conversation

davidmoten
Copy link
Collaborator

@davidmoten davidmoten commented Jul 31, 2016

as discussed in #4260

  • call RxJavaHooks.onError for secondary errors
  • reduced allocations (ActionSubscriber -> ActionObserver, Operator -> OnSubscribe)
  • added 5 unit tests

@codecov-io
Copy link

codecov-io commented Jul 31, 2016

Current coverage is 84.41% (diff: 100%)

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

@@                1.x      #4262   diff @@
==========================================
  Files           267        268     +1   
  Lines         17460      17477    +17   
  Methods           0          0          
  Messages          0          0          
  Branches       2662       2662          
==========================================
+ Hits          14735      14753    +18   
  Misses         1866       1866          
+ Partials        859        858     -1   

Powered by Codecov. Last update 969d94c...771d859

@@ -5509,7 +5509,7 @@ public Completable toCompletable() {
Action1<Throwable> onError = Actions.empty();
Observer<T> observer = new ActionSubscriber<T>(onNext, onError, onCompleted);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ActionObserver?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ta

@davidmoten davidmoten force-pushed the doOnEach-optimize-and-fix branch from d34fc7f to 771d859 Compare July 31, 2016 10:23
@davidmoten
Copy link
Collaborator Author

fixed ActionSubscriber usage and removed empty test, ta

@akarnokd
Copy link
Member

👍

@akarnokd akarnokd merged commit 3639e73 into ReactiveX:1.x Jul 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants