-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 "error handling" java docs section to from callable & co #6193
The head ref may contain hidden characters: "Add-\"Error-handling\"-JavaDocs-section-to-fromCallable-&-co"
Add "error handling" java docs section to from callable & co #6193
Conversation
…ble(), Single#fromCallable(), and Completable#fromCallable().
…nd Completable#fromAction().
Codecov Report
@@ Coverage Diff @@
## 2.x #6193 +/- ##
============================================
- Coverage 98.22% 98.21% -0.02%
- Complexity 6197 6199 +2
============================================
Files 667 667
Lines 44888 44888
Branches 6218 6218
============================================
- Hits 44091 44086 -5
- Misses 253 259 +6
+ Partials 544 543 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small adjustments would be great. Could you also update Flowable.fromCallable
?
* <dt><b>Error handling:</b></dt> | ||
* <dd> If the {@link Action} throws an exception, the respective {@link Throwable} is | ||
* delivered to the downstream via {@link CompletableObserver#onError(Throwable)}, | ||
* except when the downstream has canceled or disposed this {@code Completable} source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"downstream has disposed this" as only Flowable
s have cancel
.
* <dt><b>Error handling:</b></dt> | ||
* <dd> If the {@link Callable} throws an exception, the respective {@link Throwable} is | ||
* delivered to the downstream via {@link CompletableObserver#onError(Throwable)}, | ||
* except when the downstream has canceled or disposed this {@code Completable} source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"downstream has disposed this"
* <dt><b>Error handling:</b></dt> | ||
* <dd> If the {@link Action} throws an exception, the respective {@link Throwable} is | ||
* delivered to the downstream via {@link MaybeObserver#onError(Throwable)}, | ||
* except when the downstream has canceled or disposed this {@code Maybe} source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"downstream has disposed this"
* <dt><b>Error handling:</b></dt> | ||
* <dd> If the {@link Callable} throws an exception, the respective {@link Throwable} is | ||
* delivered to the downstream via {@link Observer#onError(Throwable)}, | ||
* except when the downstream has canceled or disposed this {@code Observable} source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"downstream has disposed this"
* <dt><b>Error handling:</b></dt> | ||
* <dd> If the {@link Callable} throws an exception, the respective {@link Throwable} is | ||
* delivered to the downstream via {@link SingleObserver#onError(Throwable)}, | ||
* except when the downstream has canceled or disposed this {@code Single} source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"downstream has disposed this"
I noticed that there's quite a bit more of the "cancellation" language in the other areas.
Should this be added to #4535? |
Post a separate PR for those. |
Should I create a separate issue as well? Also, is there anything else you need from me to get this PR merged (unsure of the process at this point)? |
No need to open an issue for that. We are waiting for another approval and this will be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 missed it
Resolves #6179
Added JavaDocs describing the regular and canceled/disposed behavior for
Observable.fromCallable()
Single.fromCallable()
Maybe.fromAction()
Completable.fromCallable()
Completable.fromAction()
Flowable.fromCallable()
Did not alter
Maybe.fromCallable()
because the existing JavaDoc appears to be adequate.