# 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-sdk/blob/19dc497a3d89638e4cc35db72ea1c29cad35cbbf/python/langsmith/utils.py#L743)