> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.fast_depends.utils.contextmanager_in_threadpool

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### contextmanager\_in\_threadpool

```python theme={null}
contextmanager_in_threadpool(cm: ContextManager[~T]) -> AsyncGenerator[~T, None]
```

<b>Parameters:</b>

| Name | Description                    |
| ---- | ------------------------------ |
| `cm` | **Type:** ContextManager\[\~T] |

<br />
