ifCompletes

fun Completable.ifCompletes(chainableCompletableInvocation: () -> Completable): Completable

Creates a Completable that will subscribe to this and once onComplete is called then subscribe will be called on chainableCompletableInvocation. The new completable will emit the values emitted by chainableCompletableInvocation.

Return

the new Completable

Parameters

chainableCompletableInvocation

Completable source that will only be subscribed to if this completes without error