[android-components](../../index.md) / [mozilla.components.support.android.test](../index.md) / [android.arch.lifecycle.LiveData](./index.md)

### Extensions for android.arch.lifecycle.LiveData

| Name | Summary |
|---|---|
| [awaitValue](await-value.md) | `fun <T> LiveData<`[`T`](await-value.md#T)`>.awaitValue(timeout: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` = 1, unit: `[`TimeUnit`](https://developer.android.com/reference/java/util/concurrent/TimeUnit.html)` = TimeUnit.SECONDS): `[`T`](await-value.md#T)`?`<br>Subscribes to the [LiveData](#) object and blocks until a value was observed. Returns the value or throws [InterruptedException](https://developer.android.com/reference/java/lang/InterruptedException.html) if no value was observed in the given [timeout](await-value.md#mozilla.components.support.android.test$awaitValue(android.arch.lifecycle.LiveData((mozilla.components.support.android.test.awaitValue.T)), kotlin.Long, java.util.concurrent.TimeUnit)/timeout) (using [unit](await-value.md#mozilla.components.support.android.test$awaitValue(android.arch.lifecycle.LiveData((mozilla.components.support.android.test.awaitValue.T)), kotlin.Long, java.util.concurrent.TimeUnit)/unit)). |
