<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SystemCoordinator/ParticipantStates/Iterator/next()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities17SystemCoordinatorC17ParticipantStatesV8IteratorV4nextAC0E5StateVSgyYaF"
  },
  "title" : "next()"
}
-->

# next()

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

```
mutating func next() async -> SystemCoordinator.ParticipantStates.Element?
```

## Return Value

The next element, if it exists, or `nil` to signal the end of
the sequence.

---

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)