src/main/java/io/reactivex/Maybe.java
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Maybe<T> onTerminateDetach() {
        return RxJavaPlugins.onAssembly(new MaybeDetach<T>(this));
    }
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Maybe<T> onTerminateDetach() {
        return RxJavaPlugins.onAssembly(new MaybeDetach<T>(this));
    }
Nulls out references to the upstream producer and downstream MaybeObserver if
the sequence is terminated or downstream calls dispose().
<dl>
<dt><b>Scheduler:</b></dt>
<dd>{@code onTerminateDetach} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>
@return a Maybe which nulls out references to the upstream producer and downstream MaybeObserver if
the sequence is terminated or downstream calls dispose()