@Test public void errors() { TestSubscriber<Object> ts = new TestSubscriber<>(Long.MAX_VALUE); Multi.concatArray(Multi.singleton(1), Multi.error(new IOException()), Multi.singleton(2)) .subscribe(ts); ts.assertFailure(IOException.class, 1); }
@Override public void subscribe(Flow.Subscriber<? super T> subscriber) { ConcatArraySubscriber<T> parent = new ConcatArraySubscriber<>(subscriber, sources); subscriber.onSubscribe(parent); parent.nextSource(); }
MultiConcatArray implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { ConcatArraySubscriber<T> parent = new ConcatArraySubscriber<>(subscriber, sources); subscriber.onSubscribe(parent); parent.nextSource(); } }
MultiConcatArray implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { ConcatArraySubscriber<T> parent = new ConcatArraySubscriber<>(subscriber, sources); subscriber.onSubscribe(parent); parent.nextSource(); } MultiConcatArray(Flow.Publisher<T>[] sources); }
MultiConcatArray implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { ConcatArraySubscriber<T> parent = new ConcatArraySubscriber<>(subscriber, sources); subscriber.onSubscribe(parent); parent.nextSource(); } MultiConcatArray(Flow.Publisher<T>[] sources); @Override void subscribe(Flow.Subscriber<? super T> subscriber); }
MultiConcatArray implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { ConcatArraySubscriber<T> parent = new ConcatArraySubscriber<>(subscriber, sources); subscriber.onSubscribe(parent); parent.nextSource(); } MultiConcatArray(Flow.Publisher<T>[] sources); @Override void subscribe(Flow.Subscriber<? super T> subscriber);  }