RxJava icon indicating copy to clipboard operation
RxJava copied to clipboard

3.x: Revise AtomicThrowable.addThrowable usage

Open akarnokd opened this issue 7 years ago • 2 comments

Currently, many (if not all?) usage of addThrowable is as follows:

if (errors.addThrowable(ex)) {
   // do something with the error case
} else {
    RxJavaPlugins.onError(ex);
}

The plugin error call could be inlined into the method call and renamed to tryAddThrowable to ensure all usage places are updated correctly.

akarnokd avatar Aug 05 '19 12:08 akarnokd

Hey, do you need help doing this?

RomanWuattier avatar Aug 06 '19 07:08 RomanWuattier

Each usage location has to be reevaluated and there are thousands of those. It would be easier if I do them.

akarnokd avatar Aug 06 '19 07:08 akarnokd