src/main/java/io/reactivex/Completable.java
@CheckReturnValue
    @NonNull
    @SchedulerSupport(SchedulerSupport.NONE)
    public static Completable fromFuture(final Future<?> future) {
        ObjectHelper.requireNonNull(future, "future is null");
        return fromAction(Functions.futureAction(future));
    }
@CheckReturnValue
    @NonNull
    @SchedulerSupport(SchedulerSupport.NONE)
    public static Completable fromFuture(final Future<?> future) {
        ObjectHelper.requireNonNull(future, "future is null");
        return fromAction(Functions.futureAction(future));
    }
@ CheckReturnValue @ NonNull @ SchedulerSupport ( SchedulerSupport . NONE ) public static Completable fromFuture ( final Future < ? > future ) { ObjectHelper . requireNonNull ( future , "future is null" ) ; return fromAction ( Functions . futureAction ( future ) ) ; }
Returns a Completable instance that reacts to the termination of the given Future in a blocking fashion.
<p>
<img width="640" height="628" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.fromFuture.png" alt="">
<p>
Note that if any of the observers to this Completable call dispose, this Completable will cancel the future.
<dl>
<dt><b>Scheduler:</b></dt>
<dd>{@code fromFuture} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>
@param future the future to react to
@return the new Completable instance
Returns a Completable instance that reacts to the termination of the given Future in a blocking fashion . <p > <img width = 640 height = 628 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / Completable . fromFuture . png alt = > <p > Note that if any of the observers to this Completable call dispose this Completable will cancel the future . <dl > <dt > <b > Scheduler : < / b > < / dt > <dd > {