@@ -5314,11 +5314,18 @@ public final Future<T> toFuture() {
5314
5314
* Runs the source observable to a terminal event, ignoring any values and rethrowing any exception.
5315
5315
* <p>
5316
5316
* <img width="640" height="270" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.0.png" alt="">
5317
+ * <p>
5318
+ * Note that calling this method will block the caller thread until the upstream terminates
5319
+ * normally or with an error. Therefore, calling this method from special threads such as the
5320
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5317
5321
* <dl>
5318
5322
* <dt><b>Scheduler:</b></dt>
5319
5323
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5320
5324
* </dl>
5321
5325
* @since 2.0
5326
+ * @see #blockingSubscribe(Consumer)
5327
+ * @see #blockingSubscribe(Consumer, Consumer)
5328
+ * @see #blockingSubscribe(Consumer, Consumer, Action)
5322
5329
*/
5323
5330
@SchedulerSupport(SchedulerSupport.NONE)
5324
5331
public final void blockingSubscribe() {
@@ -5330,15 +5337,23 @@ public final void blockingSubscribe() {
5330
5337
* <p>
5331
5338
* <img width="640" height="393" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.1.png" alt="">
5332
5339
* <p>
5333
- * If the Observable emits an error, it is wrapped into an
5340
+ * If the {@code Observable} emits an error, it is wrapped into an
5334
5341
* {@link io.reactivex.exceptions.OnErrorNotImplementedException OnErrorNotImplementedException}
5335
5342
* and routed to the RxJavaPlugins.onError handler.
5343
+ * Using the overloads {@link #blockingSubscribe(Consumer, Consumer)}
5344
+ * or {@link #blockingSubscribe(Consumer, Consumer, Action)} instead is recommended.
5345
+ * <p>
5346
+ * Note that calling this method will block the caller thread until the upstream terminates
5347
+ * normally or with an error. Therefore, calling this method from special threads such as the
5348
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5336
5349
* <dl>
5337
5350
* <dt><b>Scheduler:</b></dt>
5338
5351
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5339
5352
* </dl>
5340
5353
* @param onNext the callback action for each source value
5341
5354
* @since 2.0
5355
+ * @see #blockingSubscribe(Consumer, Consumer)
5356
+ * @see #blockingSubscribe(Consumer, Consumer, Action)
5342
5357
*/
5343
5358
@SchedulerSupport(SchedulerSupport.NONE)
5344
5359
public final void blockingSubscribe(Consumer<? super T> onNext) {
@@ -5349,13 +5364,18 @@ public final void blockingSubscribe(Consumer<? super T> onNext) {
5349
5364
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5350
5365
* <p>
5351
5366
* <img width="640" height="396" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.2.png" alt="">
5367
+ * <p>
5368
+ * Note that calling this method will block the caller thread until the upstream terminates
5369
+ * normally or with an error. Therefore, calling this method from special threads such as the
5370
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5352
5371
* <dl>
5353
5372
* <dt><b>Scheduler:</b></dt>
5354
5373
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5355
5374
* </dl>
5356
5375
* @param onNext the callback action for each source value
5357
5376
* @param onError the callback action for an error event
5358
5377
* @since 2.0
5378
+ * @see #blockingSubscribe(Consumer, Consumer, Action)
5359
5379
*/
5360
5380
@SchedulerSupport(SchedulerSupport.NONE)
5361
5381
public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super Throwable> onError) {
@@ -5367,6 +5387,10 @@ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super
5367
5387
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5368
5388
* <p>
5369
5389
* <img width="640" height="394" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.png" alt="">
5390
+ * <p>
5391
+ * Note that calling this method will block the caller thread until the upstream terminates
5392
+ * normally or with an error. Therefore, calling this method from special threads such as the
5393
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5370
5394
* <dl>
5371
5395
* <dt><b>Scheduler:</b></dt>
5372
5396
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5382,18 +5406,24 @@ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super
5382
5406
}
5383
5407
5384
5408
/**
5385
- * Subscribes to the source and calls the Observer methods <strong>on the current thread</strong>.
5409
+ * Subscribes to the source and calls the {@link Observer} methods <strong>on the current thread</strong>.
5410
+ * <p>
5411
+ * Note that calling this method will block the caller thread until the upstream terminates
5412
+ * normally, with an error or the {@code Observer} disposes the {@link Disposable} it receives via
5413
+ * {@link Observer#onSubscribe(Disposable)}.
5414
+ * Therefore, calling this method from special threads such as the
5415
+ * Android Main Thread or the Swing Event Dispatch Thread is not recommended.
5386
5416
* <dl>
5387
5417
* <dt><b>Scheduler:</b></dt>
5388
5418
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
5389
5419
* </dl>
5390
5420
* The a dispose() call is composed through.
5391
- * @param subscriber the subscriber to forward events and calls to in the current thread
5421
+ * @param observer the {@code Observer} instance to forward events and calls to in the current thread
5392
5422
* @since 2.0
5393
5423
*/
5394
5424
@SchedulerSupport(SchedulerSupport.NONE)
5395
- public final void blockingSubscribe(Observer<? super T> subscriber ) {
5396
- ObservableBlockingSubscribe.subscribe(this, subscriber );
5425
+ public final void blockingSubscribe(Observer<? super T> observer ) {
5426
+ ObservableBlockingSubscribe.subscribe(this, observer );
5397
5427
}
5398
5428
5399
5429
/**
0 commit comments