<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URL/AsyncBytes/AsyncIterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation3URLV10AsyncBytesV0C8IteratorV"
  },
  "title" : "URL.AsyncBytes.AsyncIterator"
}
-->

# URL.AsyncBytes.AsyncIterator

The iterator type that produces elements of this asynchronous sequence.

```
@frozen struct AsyncIterator
```

## Topics

### Producing iterator values

[`func next() async throws -> UInt8?`](/documentation/Foundation/URL/AsyncBytes/AsyncIterator/next())

Asynchronously advances to the next element and returns it, or ends the sequence if there is no next element.

### Supporting types

[`typealias Element`](/documentation/Foundation/URL/AsyncBytes/Element)

The type of element produced by this asynchronous sequence.

### Instance Methods

## Relationships

### Conforms To

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

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

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

---

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)