---
title: "next(isolation:)"
framework: managedappdistribution
role: symbol
role_heading: Instance Method
path: "managedappdistribution/managedapplibrary/managedapps/asynciterator/next(isolation:)"
---

# next(isolation:)

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

## Declaration

```swift
func next(isolation actor: isolated (any Actor)?) async throws(ManagedAppLibrary.ManagedApps.AsyncIterator.Failure) -> ManagedAppLibrary.ManagedApps.AsyncIterator.Element?
```
