src/main/java/io/reactivex/Observable.java
@SuppressWarnings("unchecked")
    @CheckReturnValue
    @NonNull
    @SchedulerSupport(SchedulerSupport.NONE)
    public static <T> Observable<T> ambArray(ObservableSource<? extends T>... sources) {
        ObjectHelper.requireNonNull(sources, "sources is null");
        int len = sources.length;
        if (len == 0) {
            return empty();
        }
        if (len == 1) {
            return (Observable<T>)wrap(sources[0]);
        }
        return RxJavaPlugins.onAssembly(new ObservableAmb<T>(sources, null));
    }
@SuppressWarnings("unchecked")
    @CheckReturnValue
    @NonNull
    @SchedulerSupport(SchedulerSupport.NONE)
    public static <T> Observable<T> ambArray(ObservableSource<? extends T>... sources) {
        ObjectHelper.requireNonNull(sources, "sources is null");
        int len = sources.length;
        if (len == 0) {
            return empty();
        }
        if (len == 1) {
            return (Observable<T>)wrap(sources[0]);
        }
        return RxJavaPlugins.onAssembly(new ObservableAmb<T>(sources, null));
    }
Mirrors the one ObservableSource in an array of several ObservableSources that first either emits an item or sends
a termination notification.
<p>
<img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.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 common element type
@param sources
an array of ObservableSource sources competing to react first. A subscription to each source will
occur in the same order as in the array.
@return an Observable that emits the same sequence as whichever of the source ObservableSources first
emitted an item or sent a termination notification
@see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>