@Override protected void subscribeActual(Subscriber<? super R> s) { int n = 0; @SuppressWarnings("unchecked") Solo<? extends T>[] array = new Solo[8]; try { for (Solo<? extends T> inner : sources) { if (n == array.length) { array = Arrays.copyOf(array, n + (n >> 1)); } array[n++] = ObjectHelper.requireNonNull(inner, "One of the source Solo is null"); } } catch (Throwable ex) { Exceptions.throwIfFatal(ex); EmptySubscription.error(ex, s); return; } if (n == 0) { EmptySubscription.complete(s); return; } else if (n == 1) { array[0].subscribe(new MapSubscriber<T, R>(s, this)); return; } ZipCoordinator<T, R> parent = new ZipCoordinator<T, R>(s, zipper, n); s.onSubscribe(parent); parent.subscribe(array, n); }
@Override protected void subscribeActual(Subscriber<? super R> s) { int n = 0; @SuppressWarnings("unchecked") Solo<? extends T>[] array = new Solo[8]; try { for (Solo<? extends T> inner : sources) { if (n == array.length) { array = Arrays.copyOf(array, n + (n >> 1)); } array[n++] = ObjectHelper.requireNonNull(inner, "One of the source Solo is null"); } } catch (Throwable ex) { Exceptions.throwIfFatal(ex); EmptySubscription.error(ex, s); return; } if (n == 0) { EmptySubscription.complete(s); return; } else if (n == 1) { array[0].subscribe(new MapSubscriber<T, R>(s, this)); return; } ZipCoordinator<T, R> parent = new ZipCoordinator<T, R>(s, zipper, n); s.onSubscribe(parent); parent.subscribe(array, n); }
@Override protected void subscribeActual(Subscriber<? super R> s) { source.subscribe(new MapSubscriber<T, R>(s, mapper)); }
@Override protected void subscribeActual(Subscriber<? super R> s) { source.subscribe(new MapSubscriber<T, R>(s, mapper)); } }
@Override protected void subscribeActual(Subscriber<? super R> s) { source.subscribe(new MapSubscriber<T, R>(s, mapper)); }
@Override protected void subscribeActual(Subscriber<? super R> s) { source.subscribe(new MapSubscriber<T, R>(s, mapper)); } }