Add "error handling" java docs section to from callable & co#6193
Hidden character warning
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.
|
akarnokd
left a comment
There was a problem hiding this comment.
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.
"downstream has disposed this" as only Flowables 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. |
| * <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. |
| * <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. |
| * <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. |
|
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. |
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.