await

fun <T> Observable<T>.await(): Pair<T?, Throwable?>

Blocks the current thread and waits for the Observable to complete, then returns a Pair containing the result, and the error (if any) This must not be called from the Main thread (and will throw an IllegalStateException if done so) as that would freeze the UI

Return

A Pair whose first value is the result and whose second value is the error that occurred, if any