@Test public void errorBeforeSkip() { TestSubscriber<Object> ts = new TestSubscriber<>(); Multi.error(new IllegalArgumentException()) .skip(5) .subscribe(ts); assertThat(ts.getItems().isEmpty(), is(true)); assertThat(ts.getLastError(), instanceOf(IllegalArgumentException.class)); assertThat(ts.isComplete(), is(false)); }
@Override public void subscribe(Flow.Subscriber<? super T> subscriber) { Objects.requireNonNull(subscriber, "subscriber is null"); source.subscribe(new SkipSubscriber<>(subscriber, n)); }
MultiSkipPublisher implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { Objects.requireNonNull(subscriber, "subscriber is null"); source.subscribe(new SkipSubscriber<>(subscriber, n)); } }
MultiSkipPublisher implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { Objects.requireNonNull(subscriber, "subscriber is null"); source.subscribe(new SkipSubscriber<>(subscriber, n)); } MultiSkipPublisher(Multi<T> source, long n); }
MultiSkipPublisher implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { Objects.requireNonNull(subscriber, "subscriber is null"); source.subscribe(new SkipSubscriber<>(subscriber, n)); } MultiSkipPublisher(Multi<T> source, long n); @Override void subscribe(Flow.Subscriber<? super T> subscriber); }
MultiSkipPublisher implements Multi<T> { @Override public void subscribe(Flow.Subscriber<? super T> subscriber) { Objects.requireNonNull(subscriber, "subscriber is null"); source.subscribe(new SkipSubscriber<>(subscriber, n)); } MultiSkipPublisher(Multi<T> source, long n); @Override void subscribe(Flow.Subscriber<? super T> subscriber);  }