# std::experimental::latch::wait

> C++ Atlas: `cppatlas.com/w/cpp/experimental/latch/wait` | Source: https://en.cppreference.com/w/cpp/experimental/latch/wait | Domain: Technical specifications

Blocks the calling thread until the internal counter reaches 0. If it is zero already, returns immediately.

## Official Specification Summary (cppreference)

```cpp
void wait() const; // (1) (concurrency TS)
```

Blocks the calling thread until the internal counter reaches `0`. If it is zero already, returns immediately.

### Parameters

(none)

### Return value

(none)

### Exceptions

Throws nothing.

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/latch/wait (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.