<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Translation",
  "identifier" : "/documentation/Translation/TranslationSession/BatchResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Translation"
    ],
    "preciseIdentifier" : "s:11Translation0A7SessionC13BatchResponseV"
  },
  "title" : "TranslationSession.BatchResponse"
}
-->

# TranslationSession.BatchResponse

A type that provides asynchronous access to translation responses.

```
struct BatchResponse
```

## Overview

This type returns instances of [`TranslationSession.Response`](/documentation/Translation/TranslationSession/Response) asynchronously
and throws an `Error` if something goes wrong.

## Topics

### Iterating over translation results

[`func makeAsyncIterator() -> TranslationSession.BatchResponse.AsyncIterator`](/documentation/Translation/TranslationSession/BatchResponse/makeAsyncIterator())

Creates the asynchronous iterator that produces elements of this asynchronous sequence.

### Iteration types

[`struct AsyncIterator`](/documentation/Translation/TranslationSession/BatchResponse/AsyncIterator)

The type of asynchronous iterator that produces elements of this asynchronous sequence.

[`typealias Element`](/documentation/Translation/TranslationSession/BatchResponse/Element)

The type of element produced by this asynchronous sequence.

## Relationships

### Conforms To

[`AsyncSequence`](/documentation/Swift/AsyncSequence)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)