getNow

fun <T> DataObserver<T>.getNow(): Pair<T?, Throwable?>

Provides blockingGet() functionality to DataObservers. This will block the thread until the data or an error is received.

Return

A Pair of the data result, and a Throwable. Only one of these will be non-null at a time.