Files
typeshed/stdlib/asyncio/threads.pyi
2022-02-18 18:45:58 -08:00

9 lines
238 B
Python

from typing import Callable, TypeVar
from typing_extensions import ParamSpec
__all__ = ("to_thread",)
_P = ParamSpec("_P")
_R = TypeVar("_R")
async def to_thread(__func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: ...