---
title: next()
framework: combine
role: symbol
role_heading: Instance Method
path: combine/asyncpublisher/iterator/next()
---

# next()

Produces the next element in the prefix sequence.

## Declaration

```swift
mutating func next() async -> P.Output?
```

## Return Value

Return Value The next published element, or nil if the publisher finishes normally.
