---
title: "next(isolation:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/asyncdropwhilesequence/iterator/next(isolation:)-6b5gu"
---

# next(isolation:)

Default implementation of next(isolation:) in terms of next(), which is required to maintain backward compatibility with existing async iterators.

## Declaration

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