Top Description Constructors Methods
io.reactivex.internal.util

public final Class BlockingHelper

extends Object
Class Inheritance
Imports
java.util.concurrent.CountDownLatch, io.reactivex.disposables.Disposable, io.reactivex.internal.schedulers.NonBlockingThread, io.reactivex.plugins.RxJavaPlugins

Utility methods for helping common blocking operations.

Constructor Summary

AccessConstructor and Description
private
BlockingHelper()

Utility class.

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
verifyNonBlocking()

Checks if the failOnNonBlockingScheduler plugin setting is enabled and the current thread is a Scheduler sensitive to blocking operators.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BlockingHelperback to summary
private BlockingHelper()

Utility class.

Method Detail

awaitForCompleteback to summary
public static void awaitForComplete(CountDownLatch latch, Disposable subscription)
verifyNonBlockingback to summary
public static void verifyNonBlocking()

Checks if the failOnNonBlockingScheduler plugin setting is enabled and the current thread is a Scheduler sensitive to blocking operators.

Exceptions
IllegalStateException:
if the failOnNonBlockingScheduler and the current thread is sensitive to blocking