asSingle

fun <T> Completable.asSingle(defaultValue: T): Single<T>

Converts this Completable into a Single which emits the defaultValue when this Completable completes.

Please refer to the corresponding RxJava document.


fun <T> Completable.asSingle(defaultValueSupplier: () -> T): Single<T>

Converts this Completable into a Single which emits a value returned by defaultValueSupplier when this Completable completes.

Please refer to the corresponding RxJava document.