<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAPairedDevice/DevicesSequence/AsyncIterator",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware14WAPairedDeviceV15DevicesSequenceV13AsyncIteratorC"
  },
  "title" : "WAPairedDevice.DevicesSequence.AsyncIterator"
}
-->

# WAPairedDevice.DevicesSequence.AsyncIterator

An iterator for the sequence of devices.

```
class AsyncIterator
```

## Topics

### Getting the next asynchronous update

[`typealias Element`](/documentation/WiFiAware/WAPairedDevice/DevicesSequence/AsyncIterator/Element)

A dictionary holding a snapshot of currently paired devices accessible to your app.

[`func next() async throws -> WAPairedDevice.DevicesSequence.AsyncIterator.Element?`](/documentation/WiFiAware/WAPairedDevice/DevicesSequence/AsyncIterator/next())

Returns the next dictionary in the sequence.

### Throwing an error

[`typealias Failure`](/documentation/WiFiAware/WAPairedDevice/DevicesSequence/AsyncIterator/Failure)

The type of error that the sequence can produce.

## Relationships

### Conforms To

[`AsyncIteratorProtocol`](/documentation/Swift/AsyncIteratorProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)