@@ -5853,6 +5853,38 @@ public final void blockingSubscribe(Consumer<? super T> onNext) {
5853
5853
FlowableBlockingSubscribe.subscribe(this, onNext, Functions.ON_ERROR_MISSING, Functions.EMPTY_ACTION);
5854
5854
}
5855
5855
5856
+ /**
5857
+ * Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5858
+ * <p>
5859
+ * If the Flowable emits an error, it is wrapped into an
5860
+ * {@link io.reactivex.exceptions.OnErrorNotImplementedException OnErrorNotImplementedException}
5861
+ * and routed to the RxJavaPlugins.onError handler.
5862
+ * Using the overloads {@link #blockingSubscribe(Consumer, Consumer)}
5863
+ * or {@link #blockingSubscribe(Consumer, Consumer, Action)} instead is recommended.
5864
+ * <p>
5865
+ * Note that calling this method will block the caller thread until the upstream terminates
5866
+ * normally or with an error. Therefore, calling this method from special threads such as the
5867
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5868
+ * <dl>
5869
+ * <dt><b>Backpressure:</b></dt>
5870
+ * <dd>The operator consumes the source {@code Flowable} in an bounded manner (up to bufferSize
5871
+ * outstanding request amount for items).</dd>
5872
+ * <dt><b>Scheduler:</b></dt>
5873
+ * <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5874
+ * </dl>
5875
+ * @param onNext the callback action for each source value
5876
+ * @param bufferSize the size of the buffer
5877
+ * @since 2.1.15 - experimental
5878
+ * @see #blockingSubscribe(Consumer, Consumer)
5879
+ * @see #blockingSubscribe(Consumer, Consumer, Action)
5880
+ */
5881
+ @BackpressureSupport(BackpressureKind.FULL)
5882
+ @SchedulerSupport(SchedulerSupport.NONE)
5883
+ @Experimental
5884
+ public final void blockingSubscribe(Consumer<? super T> onNext, int bufferSize) {
5885
+ FlowableBlockingSubscribe.subscribe(this, onNext, Functions.ON_ERROR_MISSING, Functions.EMPTY_ACTION, bufferSize);
5886
+ }
5887
+
5856
5888
/**
5857
5889
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5858
5890
* <p>
@@ -5877,6 +5909,32 @@ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super
5877
5909
FlowableBlockingSubscribe.subscribe(this, onNext, onError, Functions.EMPTY_ACTION);
5878
5910
}
5879
5911
5912
+ /**
5913
+ * Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5914
+ * <p>
5915
+ * Note that calling this method will block the caller thread until the upstream terminates
5916
+ * normally or with an error. Therefore, calling this method from special threads such as the
5917
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5918
+ * <dl>
5919
+ * <dt><b>Backpressure:</b></dt>
5920
+ * <dd>The operator consumes the source {@code Flowable} in an bounded manner (up to bufferSize
5921
+ * outstanding request amount for items).</dd>
5922
+ * <dt><b>Scheduler:</b></dt>
5923
+ * <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5924
+ * </dl>
5925
+ * @param onNext the callback action for each source value
5926
+ * @param onError the callback action for an error event
5927
+ * @param bufferSize the size of the buffer
5928
+ * @since 2.1.15 - experimental
5929
+ * @see #blockingSubscribe(Consumer, Consumer, Action)
5930
+ */
5931
+ @BackpressureSupport(BackpressureKind.FULL)
5932
+ @SchedulerSupport(SchedulerSupport.NONE)
5933
+ @Experimental
5934
+ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError,
5935
+ int bufferSize) {
5936
+ FlowableBlockingSubscribe.subscribe(this, onNext, onError, Functions.EMPTY_ACTION, bufferSize);
5937
+ }
5880
5938
5881
5939
/**
5882
5940
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
@@ -5902,6 +5960,33 @@ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super
5902
5960
FlowableBlockingSubscribe.subscribe(this, onNext, onError, onComplete);
5903
5961
}
5904
5962
5963
+ /**
5964
+ * Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5965
+ * <p>
5966
+ * Note that calling this method will block the caller thread until the upstream terminates
5967
+ * normally or with an error. Therefore, calling this method from special threads such as the
5968
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5969
+ * <dl>
5970
+ * <dt><b>Backpressure:</b></dt>
5971
+ * <dd>The operator consumes the source {@code Flowable} in an bounded manner (up to bufferSize
5972
+ * outstanding request amount for items).</dd>
5973
+ * <dt><b>Scheduler:</b></dt>
5974
+ * <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5975
+ * </dl>
5976
+ * @param onNext the callback action for each source value
5977
+ * @param onError the callback action for an error event
5978
+ * @param onComplete the callback action for the completion event.
5979
+ * @param bufferSize the size of the buffer
5980
+ * @since 2.1.15 - experimental
5981
+ */
5982
+ @BackpressureSupport(BackpressureKind.FULL)
5983
+ @SchedulerSupport(SchedulerSupport.NONE)
5984
+ @Experimental
5985
+ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError, Action onComplete,
5986
+ int bufferSize) {
5987
+ FlowableBlockingSubscribe.subscribe(this, onNext, onError, onComplete, bufferSize);
5988
+ }
5989
+
5905
5990
/**
5906
5991
* Subscribes to the source and calls the {@link Subscriber} methods <strong>on the current thread</strong>.
5907
5992
* <p>
0 commit comments