# ContextThreadPoolExecutor

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/utils/ContextThreadPoolExecutor)

ThreadPoolExecutor that copies the context to the child thread.

## Signature

```python
ContextThreadPoolExecutor()
```

## Extends

- `ThreadPoolExecutor`

## Methods

- [`submit()`](https://reference.langchain.com/python/langsmith/utils/ContextThreadPoolExecutor/submit)
- [`map()`](https://reference.langchain.com/python/langsmith/utils/ContextThreadPoolExecutor/map)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/utils.py#L720)