/** * Returns a Nono that terminates when the first Nono from the * sources sequence terminates. * @param sources the Iterable sequence of sources * @return the new Nono instance */ public static Nono amb(Iterable<? extends Nono> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return onAssembly(new NonoAmbIterable(sources)); }
/** * Returns a Nono that terminates when the first Nono from the * sources sequence terminates. * @param sources the Iterable sequence of sources * @return the new Nono instance */ public static Nono amb(Iterable<? extends Nono> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return onAssembly(new NonoAmbIterable(sources)); }