---
title: wait()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nscondition/wait()
---

# wait()

Blocks the current thread until the condition is signaled.

## Declaration

```swift
func wait()
```

## Discussion

Discussion You must lock the receiver prior to calling this method.

## See Also

### Related Documentation

- [Threading Programming Guide](apple-archive/documentation/Cocoa/Conceptual/Multithreading/Introduction.md)
- [lock()](foundation/nslocking/lock().md)

### Waiting for the Lock

- [wait(until:)](foundation/nscondition/wait(until:).md)
