---
title: next()
framework: wifiaware
role: symbol
role_heading: Instance Method
path: wifiaware/wapaireddevice/devicessequence/asynciterator/next()
---

# next()

Returns the next dictionary in the sequence.

## Declaration

```swift
func next() async throws -> WAPairedDevice.DevicesSequence.AsyncIterator.Element?
```

## Return Value

Return Value The next WAPairedDevice.Devices snapshot, or nil if it’s at the end of the sequence.

## Discussion

Discussion The WAPairedDevice.Devices dictionary holds the latest snapshot of the currently paired devices that are known and accessible to your app. note: An error if the system can’t read the sequence, or if your app isn’t permitted to access Wi-Fi Aware devices.

## See Also

### Getting the next asynchronous update

- [WAPairedDevice.DevicesSequence.AsyncIterator.Element](wifiaware/wapaireddevice/devicessequence/asynciterator/element.md)
