@@ -577,7 +577,7 @@ public static Completable never() {
577
577
}
578
578
579
579
/**
580
- * Returns a Completable instance that fires its onComplete event after the given delay ellapsed .
580
+ * Returns a Completable instance that fires its onComplete event after the given delay elapsed .
581
581
* <dl>
582
582
* <dt><b>Scheduler:</b></dt>
583
583
* <dd>{@code timer} does operate by default on the {@code computation} {@link Scheduler}.</dd>
@@ -592,7 +592,7 @@ public static Completable timer(long delay, TimeUnit unit) {
592
592
}
593
593
594
594
/**
595
- * Returns a Completable instance that fires its onComplete event after the given delay ellapsed
595
+ * Returns a Completable instance that fires its onComplete event after the given delay elapsed
596
596
* by using the supplied scheduler.
597
597
* <dl>
598
598
* <dt><b>Scheduler:</b></dt>
@@ -815,7 +815,7 @@ public final void blockingAwait() {
815
815
* @param timeout the timeout value
816
816
* @param unit the timeout unit
817
817
* @return true if the this Completable instance completed normally within the time limit,
818
- * false if the timeout ellapsed before this Completable terminated.
818
+ * false if the timeout elapsed before this Completable terminated.
819
819
* @throws RuntimeException wrapping an InterruptedException if the current thread is interrupted
820
820
*/
821
821
@ SchedulerSupport (SchedulerSupport .NONE )
@@ -840,12 +840,12 @@ public final Throwable blockingGet() {
840
840
841
841
/**
842
842
* Subscribes to this Completable instance and blocks until it terminates or the specified timeout
843
- * ellapses , then returns null for normal termination or the emitted exception if any.
843
+ * elapses , then returns null for normal termination or the emitted exception if any.
844
844
* @param timeout the timeout value
845
845
* @param unit the time unit
846
846
* @return the throwable if this terminated with an error, null otherwise
847
847
* @throws RuntimeException that wraps an InterruptedException if the wait is interrupted or
848
- * TimeoutException if the specified timeout ellapsed before it
848
+ * TimeoutException if the specified timeout elapsed before it
849
849
*/
850
850
@ SchedulerSupport (SchedulerSupport .NONE )
851
851
public final Throwable blockingGet (long timeout , TimeUnit unit ) {
@@ -957,7 +957,7 @@ public final Completable doOnComplete(Action onComplete) {
957
957
}
958
958
959
959
/**
960
- * Returns a Completable which calls the giveon onDispose callback if the child subscriber cancels
960
+ * Returns a Completable which calls the given onDispose callback if the child subscriber cancels
961
961
* the subscription.
962
962
* <dl>
963
963
* <dt><b>Scheduler:</b></dt>
@@ -1069,9 +1069,13 @@ public final Completable doOnTerminate(final Action onTerminate) {
1069
1069
*/
1070
1070
@ SchedulerSupport (SchedulerSupport .NONE )
1071
1071
public final Completable doAfterTerminate (final Action onAfterTerminate ) {
1072
- return doOnLifecycle (Functions .emptyConsumer (), Functions .emptyConsumer (),
1073
- onAfterTerminate , Functions .EMPTY_ACTION ,
1074
- Functions .EMPTY_ACTION , Functions .EMPTY_ACTION );
1072
+ return doOnLifecycle (
1073
+ Functions .emptyConsumer (),
1074
+ Functions .emptyConsumer (),
1075
+ Functions .EMPTY_ACTION ,
1076
+ Functions .EMPTY_ACTION ,
1077
+ onAfterTerminate ,
1078
+ Functions .EMPTY_ACTION );
1075
1079
}
1076
1080
1077
1081
/**
@@ -1618,7 +1622,7 @@ public final <T> Observable<T> toObservable() {
1618
1622
}
1619
1623
1620
1624
/**
1621
- * Convers this Completable into a Single which when this Completable completes normally,
1625
+ * Converts this Completable into a Single which when this Completable completes normally,
1622
1626
* calls the given supplier and emits its returned value through onSuccess.
1623
1627
* <dl>
1624
1628
* <dt><b>Scheduler:</b></dt>
@@ -1636,7 +1640,7 @@ public final <T> Single<T> toSingle(final Callable<? extends T> completionValueS
1636
1640
}
1637
1641
1638
1642
/**
1639
- * Convers this Completable into a Single which when this Completable completes normally,
1643
+ * Converts this Completable into a Single which when this Completable completes normally,
1640
1644
* emits the given value through onSuccess.
1641
1645
* <dl>
1642
1646
* <dt><b>Scheduler:</b></dt>
0 commit comments