<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchGroup/wait(wallTimeout:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:So17OS_dispatch_groupC8DispatchE4wait11wallTimeoutAC0dG6ResultOAC0D8WallTimeV_tF"
  },
  "title" : "wait(wallTimeout:)"
}
-->

# wait(wallTimeout:)

Waits synchronously for the previously submitted work to complete, and returns if the work is not completed before the specified timeout period has elapsed.

```
func wait(wallTimeout timeout: DispatchWallTime) -> DispatchTimeoutResult
```

## Parameters

`timeout`

The latest time to wait for a group to complete.

## Return Value

[`DispatchTimeoutResult.timedOut`](/documentation/Dispatch/DispatchTimeoutResult/timedOut) if the method returned due to a timeout, or [`DispatchTimeoutResult.success`](/documentation/Dispatch/DispatchTimeoutResult/success) if the tasks completed.

## Discussion

---

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)