@@ -3491,9 +3491,7 @@ public final <R> R to(Function<? super Single<T>, R> convert) {
3491
3491
* and calls {@code onComplete} when this source {@link Single} calls
3492
3492
* {@code onSuccess}. Error terminal event is propagated.
3493
3493
* <p>
3494
- * <img width="640" height="295" src=
3495
- * "https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.toCompletable.png"
3496
- * alt="">
3494
+ * <img width="640" height="436" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.toCompletable.png" alt="">
3497
3495
* <dl>
3498
3496
* <dt><b>Scheduler:</b></dt>
3499
3497
* <dd>{@code toCompletable} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -3503,13 +3501,36 @@ public final <R> R to(Function<? super Single<T>, R> convert) {
3503
3501
* calls {@code onSuccess}.
3504
3502
* @see <a href="http://reactivex.io/documentation/completable.html">ReactiveX documentation: Completable</a>
3505
3503
* @since 2.0
3504
+ * @deprecated see {@link #ignoreElement()} instead, will be removed in 3.0
3506
3505
*/
3507
3506
@ CheckReturnValue
3508
3507
@ SchedulerSupport (SchedulerSupport .NONE )
3508
+ @ Deprecated
3509
3509
public final Completable toCompletable () {
3510
3510
return RxJavaPlugins .onAssembly (new CompletableFromSingle <T >(this ));
3511
3511
}
3512
3512
3513
+ /**
3514
+ * Returns a {@link Completable} that ignores the success value of this {@link Single}
3515
+ * and calls {@code onComplete} instead on the returned {@code Completable}.
3516
+ * <p>
3517
+ * <img width="640" height="436" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.ignoreElement.png" alt="">
3518
+ * <dl>
3519
+ * <dt><b>Scheduler:</b></dt>
3520
+ * <dd>{@code ignoreElement} does not operate by default on a particular {@link Scheduler}.</dd>
3521
+ * </dl>
3522
+ *
3523
+ * @return a {@link Completable} that calls {@code onComplete} on it's observer when the source {@link Single}
3524
+ * calls {@code onSuccess}.
3525
+ * @see <a href="http://reactivex.io/documentation/completable.html">ReactiveX documentation: Completable</a>
3526
+ * @since 2.1.13
3527
+ */
3528
+ @ CheckReturnValue
3529
+ @ SchedulerSupport (SchedulerSupport .NONE )
3530
+ public final Completable ignoreElement () {
3531
+ return RxJavaPlugins .onAssembly (new CompletableFromSingle <T >(this ));
3532
+ }
3533
+
3513
3534
/**
3514
3535
* Converts this Single into a {@link Flowable}.
3515
3536
* <p>
0 commit comments