<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedAppDistribution",
  "identifier" : "/documentation/ManagedAppDistribution/ManagedPackageLibrary/ManagedPackages/AsyncIterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ManagedAppDistribution"
    ],
    "preciseIdentifier" : "s:22ManagedAppDistribution0A14PackageLibraryC0A8PackagesV13AsyncIteratorV"
  },
  "title" : "ManagedPackageLibrary.ManagedPackages.AsyncIterator"
}
-->

# ManagedPackageLibrary.ManagedPackages.AsyncIterator

The iterator for managed apps.

```
struct AsyncIterator
```

## Topics

### Instance Methods

[`func next() async throws -> ManagedPackageLibrary.ManagedPackages.AsyncIterator.Element?`](/documentation/ManagedAppDistribution/ManagedPackageLibrary/ManagedPackages/AsyncIterator/next())

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

[`func next(isolation: isolated (any Actor)?) async throws(ManagedPackageLibrary.ManagedPackages.AsyncIterator.Failure) -> ManagedPackageLibrary.ManagedPackages.AsyncIterator.Element?`](/documentation/ManagedAppDistribution/ManagedPackageLibrary/ManagedPackages/AsyncIterator/next(isolation:))

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

### Type Aliases

[`typealias Element`](/documentation/ManagedAppDistribution/ManagedPackageLibrary/ManagedPackages/AsyncIterator/Element)

The type of element this asynchronous sequence produces.

## 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)