# Semaphore

> **Class** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/_internal/_queue/Semaphore)

Semaphore subclass with a wait() method.

## Signature

```python
Semaphore()
```

## Extends

- `threading.Semaphore`

## Methods

- [`wait()`](https://reference.langchain.com/python/langgraph/_internal/_queue/Semaphore/wait)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/70dd64065bffaa3b6ab61a33f1f020fb54db8efa/libs/langgraph/langgraph/_internal/_queue.py#L44)