Skip to content

Commit

Permalink
Update the Javadoc of the Observable.retry operator
Browse files Browse the repository at this point in the history
Specify that the `times` function parameter describes "the number of times
to resubscribe if the current Observable fails".

Solves: #6402
  • Loading branch information
RomanWuattier committed Apr 10, 2019
1 parent 3958d1b commit ce19a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -11075,7 +11075,7 @@ public final Observable<T> retry(BiPredicate<? super Integer, ? super Throwable>
* </dl>
*
* @param times
* number of retry attempts before failing
* the number of times to resubscribe if the current Observable fails
* @return the source ObservableSource modified with retry logic
* @see <a href="http://reactivex.io/documentation/operators/retry.html">ReactiveX operators documentation: Retry</a>
*/
Expand All @@ -11093,7 +11093,7 @@ public final Observable<T> retry(long times) {
* <dt><b>Scheduler:</b></dt>
* <dd>{@code retry} does not operate by default on a particular {@link Scheduler}.</dd>
* </dl>
* @param times the number of times to repeat
* @param times the number of times to resubscribe if the current Observable fails
* @param predicate the predicate called with the failure Throwable and should return true to trigger a retry.
* @return the new Observable instance
*/
Expand Down

0 comments on commit ce19a9b

Please sign in to comment.