---
title: wait()
framework: dispatch
role: symbol
role_heading: Instance Method
path: dispatch/dispatchworkitem/wait()
---

# wait()

Causes the caller to wait synchronously until the dispatch work item finishes executing.

## Declaration

```swift
func wait()
```

## Discussion

Discussion This method returns immediately if the current work item has already finished executing.

## See Also

### Waiting for the Completion of a Work Item

- [wait(timeout:)](dispatch/dispatchworkitem/wait(timeout:).md)
- [wait(wallTimeout:)](dispatch/dispatchworkitem/wait(walltimeout:).md)
- [DispatchTime](dispatch/dispatchtime.md)
- [DispatchWallTime](dispatch/dispatchwalltime.md)
