# to_thread

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_utils/_sync/to_thread)

## Signature

```python
to_thread(
    func: Callable[T_ParamSpec, T_Retval],
    /,
    args: T_ParamSpec.args = (),
    kwargs: T_ParamSpec.kwargs = {},
) -> T_Retval
```

---

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