> ## 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.run_in_threadpool

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

#### run\_in\_threadpool

```python theme={null}
run_in_threadpool(
    func: Callable[~P, ~T],
    *args: args,
    **kwargs: kwargs
) -> ~T
```

<b>Parameters:</b>

| Name       | Description                   |
| ---------- | ----------------------------- |
| `func`     | **Type:** Callable\[\~P, \~T] |
| `*args`    | **Type:** P.args              |
| `**kwargs` | **Type:** P.kwargs            |

<br />
