src/main/java/io/reactivex/Completable.java
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Completable doOnTerminate(final Action onTerminate) {
        return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(),
                Functions.EMPTY_ACTION, onTerminate,
                Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);
    }
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Completable doOnTerminate(final Action onTerminate) {
        return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(),
                Functions.EMPTY_ACTION, onTerminate,
                Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);
    }
@ CheckReturnValue @ SchedulerSupport ( SchedulerSupport . NONE ) public final Completable doOnTerminate ( final Action onTerminate ) { return doOnLifecycle ( Functions . emptyConsumer ( ) , Functions . emptyConsumer ( ) , Functions . EMPTY_ACTION , onTerminate , Functions . EMPTY_ACTION , Functions . EMPTY_ACTION ) ; }
Returns a Completable instance that calls the given onTerminate callback just before this Completable
completes normally or with an exception.
<p>
<img width="640" height="304" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.doOnTerminate.png" alt="">
<dl>
<dt><b>Scheduler:</b></dt>
<dd>{@code doOnTerminate} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>
@param onTerminate the callback to call just before this Completable terminates
@return the new Completable instance
@see #doFinally(Action)
Returns a Completable instance that calls the given onTerminate callback just before this Completable completes normally or with an exception . <p > <img width = 640 height = 304 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / Completable . doOnTerminate . png alt = > <dl > <dt > <b > Scheduler : < / b > < / dt > <dd > {