src/main/java/io/reactivex/Maybe.java
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    @SuppressWarnings("unchecked")
    public static <T> Maybe<T> ambArray(final MaybeSource<? extends T>... sources) {
        if (sources.length == 0) {
            return empty();
        }
        if (sources.length == 1) {
            return wrap((MaybeSource<T>)sources[0]);
        }
        return RxJavaPlugins.onAssembly(new MaybeAmb<T>(sources, null));
    }
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    @SuppressWarnings("unchecked")
    public static <T> Maybe<T> ambArray(final MaybeSource<? extends T>... sources) {
        if (sources.length == 0) {
            return empty();
        }
        if (sources.length == 1) {
            return wrap((MaybeSource<T>)sources[0]);
        }
        return RxJavaPlugins.onAssembly(new MaybeAmb<T>(sources, null));
    }
@ CheckReturnValue @ SchedulerSupport ( SchedulerSupport . NONE ) @ SuppressWarnings ( "unchecked" ) public static < T > Maybe < T > ambArray ( final MaybeSource < ? extends T > ... sources ) { if ( sources . length == 0 ) { return empty ( ) ; } if ( sources . length == 1 ) { return wrap ( ( MaybeSource < T > ) sources [ 0 ] ) ; } return RxJavaPlugins . onAssembly ( new MaybeAmb < T > ( sources , null ) ) ; }
Runs multiple MaybeSources and signals the events of the first one that signals (disposing
the rest).
<p>
<img width="640" height="519" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Maybe.ambArray.png" alt="">
<dl>
<dt><b>Scheduler:</b></dt>
<dd>{@code ambArray} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>
@param <T> the value type
@param sources the array of sources. A subscription to each source will
occur in the same order as in the array.
@return the new Maybe instance
Runs multiple MaybeSources and signals the events of the first one that signals ( disposing the rest ) . <p > <img width = 640 height = 519 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / Maybe . ambArray . png alt = > <dl > <dt > <b > Scheduler : < / b > < / dt > <dd > {