# DeferredResponse

# DeferredResponse


```
@HomeExperimentalApi
interface DeferredResponse<T : Any?>
```

<br />

*** ** * ** ***

Represents the response of a command which will be populated after the batch completes.

## Summary

| ### Public functions |
|---|---|
| `T` | `https://developers.home.google.com/reference/kotlin/com/google/home/DeferredResponse#getOrThrow()()` Returns the response, or throws an error if called before the batch scope completes or if the command was not successful. |

## Public functions

### getOrThrow

```
fun getOrThrow(): T
```

Returns the response, or throws an error if called before the batch scope completes or if the command was not successful.