emitOnComplete

fun <T : Any> Completable.emitOnComplete(item: T, alternateError: Throwable? = null): Single<T>

Creates a Single that will subscribe to this and emit after this completes.

Return

the new Single

Parameters

item

value to be emitted by onSuccess once source Completable calls onComplete

alternateError

optional throwable to be emitted by onError once source Completable call onError. If null then original error is emitted.