emitErrorOnComplete

fun <T : Any> Completable.emitErrorOnComplete(error: Throwable): Single<T>

Creates a Single that will subscribe to this and always call onError after this completes, regardless of onComplete or onError.

Return

the new Completable

Parameters

error

throwable to be emitted by onError once source Completable calls onComplete or onError