---
title: next()
framework: managedappdistribution
role: symbol
role_heading: Instance Method
path: managedappdistribution/managedapplibrary/managedapps/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 -> ManagedAppLibrary.ManagedApps.AsyncIterator.Element?
```

## See Also

### Iterating

- [ManagedAppLibrary.ManagedApps.AsyncIterator.Element](managedappdistribution/managedapplibrary/managedapps/asynciterator/element.md)
