---
title: next()
framework: extensionfoundation
role: symbol
role_heading: Instance Method
path: extensionfoundation/appextensionidentity/identities/asynciterator/next()
---

# next()

Asynchronously advances to the next element and returns it.

## Declaration

```swift
mutating func next() async -> [AppExtensionIdentity]?
```

## Return Value

Return Value The next element, if it exists, or nil to signal the end of the sequence.

## See Also

### Iterating the Sequence

- [AppExtensionIdentity.Identities.AsyncIterator](extensionfoundation/appextensionidentity/identities/asynciterator.md)
- [AppExtensionIdentity.Identities.Element](extensionfoundation/appextensionidentity/identities/element.md)
- [makeAsyncIterator()](extensionfoundation/appextensionidentity/identities/makeasynciterator().md)
