---
title: "asyncAndWait(execute:)"
framework: dispatch
role: symbol
role_heading: Instance Method
path: "dispatch/dispatchqueue/asyncandwait(execute:)-52p9n"
---

# asyncAndWait(execute:)

## Declaration

```swift
func asyncAndWait<T>(execute work: () throws -> T) rethrows -> T
```
