pre-commit-ci-lite[bot]
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
fastapi/concurrency.py
|
|
|
@ -17,10 +17,10 @@ _T = TypeVar("_T") |
|
|
|
@asynccontextmanager |
|
|
|
async def contextmanager_in_threadpool( |
|
|
|
"""Run a context manager in a thread pool. |
|
|
|
|
|
|
|
|
|
|
|
Args: |
|
|
|
cm: The context manager to run. |
|
|
|
|
|
|
|
|
|
|
|
Returns: |
|
|
|
The result of the context manager. |
|
|
|
""" |
|
|
|
|