blockingGet

fun <T> Single<T>.blockingGet(): T

Blocks current thread until the current Single succeeds with a value (which is returned) or fails with an exception (which is propagated).

⚠️ Please note that this method is not available in JavaScript due to its single threaded nature. A runtime exception will be thrown when this method is called in JavaScript. If you need this in JavaScript for testing purposes, then consider using Single.testAwait() extension from the reaktive-testing module.

Please refer to the corresponding RxJava document.