<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/AsyncThrowingCompactMapSequence/Iterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:12_Concurrency31AsyncThrowingCompactMapSequenceV8IteratorV"
  },
  "title" : "AsyncThrowingCompactMapSequence.Iterator"
}
-->

# AsyncThrowingCompactMapSequence.Iterator

The iterator that produces elements of the compact map sequence.

```
struct Iterator
```

## Topics

### Instance Methods

[`func next() async throws -> ElementOfResult?`](/documentation/Swift/AsyncThrowingCompactMapSequence/Iterator/next())

Produces the next element in the compact map sequence.

[`func next(isolation: isolated (any Actor)?) async throws -> ElementOfResult?`](/documentation/Swift/AsyncThrowingCompactMapSequence/Iterator/next(isolation:))

Produces the next element in the compact map sequence.

### Type Aliases

[`typealias Element`](/documentation/Swift/AsyncThrowingCompactMapSequence/Iterator/Element)

### Default Implementations

[AsyncIteratorProtocol Implementations](/documentation/Swift/AsyncThrowingCompactMapSequence/Iterator/AsyncIteratorProtocol-Implementations)

## Relationships

### Conforms To

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

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

[`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)