<!--
{
  "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" : "Combine",
  "identifier" : "/documentation/Combine/AsyncPublisher/Iterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine14AsyncPublisherV8IteratorV"
  },
  "title" : "AsyncPublisher.Iterator"
}
-->

# AsyncPublisher.Iterator

The iterator that produces elements of the asynchronous publisher sequence.

```
struct Iterator
```

## Topics

### Iterating over elements

[`func next() async -> P.Output?`](/documentation/Combine/AsyncPublisher/Iterator/next())

Produces the next element in the prefix sequence.

## Relationships

### Conforms To

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

---

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)