---
title: next()
framework: Managed App Distribution
role: symbol
role_heading: Instance Method
platforms: [Mac Catalyst 26.4+, macOS 26.4+]
path: managedappdistribution/managedpackagelibrary/managedpackages/asynciterator/next()
---

# next()

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

## Declaration

```swift
mutating func next() async throws -> ManagedPackageLibrary.ManagedPackages.AsyncIterator.Element?
```
