    struct ResultProvider<ResponseType> where ResponseType : Sendable

    extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/CommandBatcher.html.ResultProvider : Sendable, SendableMetatype

A structure that offers the ability to get the result of a command, once the batch request
completes. It captures the result state, the response index and the
ability to transform the result into a strongly typed response.
- `


  ### [Provider](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/CommandBatcher/ResultProvider#/s:13GoogleHomeSDK14CommandBatcherC14ResultProviderV0G0a)


  ` Undocumented

  #### Declaration

  Swift

      typealias Provider = @Sendable () throws -> ResponseType

- `


  ### [isSuccessful](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/CommandBatcher/ResultProvider#/s:13GoogleHomeSDK14CommandBatcherC14ResultProviderV12isSuccessfulSbvp)


  ` Returns true if the command was successful. This is a convenience method for the common
  case where the caller doesn't care about the response, just whether the command was
  successful.

  #### Declaration

  Swift

      var isSuccessful: Bool { get }

- `


  ### [getOrThrow()](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/CommandBatcher/ResultProvider#/s:13GoogleHomeSDK14CommandBatcherC14ResultProviderV10getOrThrowxyKF)


  ` Returns the response, or throws an error if the command was not successful.

  #### Declaration

  Swift

      func getOrThrow() throws -> ResponseType