Browse Source

docs: add module-level docstring to concurrency module

Documents the concurrency utilities including contextmanager_in_threadpool
and the re-exported Starlette concurrency primitives.
pull/15655/head
SUPREME 5 days ago
parent
commit
2d1390fe79
  1. 8
      fastapi/concurrency.py

8
fastapi/concurrency.py

@ -1,3 +1,11 @@
"""
Concurrency utilities for FastAPI.
Provides helpers for running context managers in thread pools to avoid
blocking the async event loop, with re-exports of common Starlette
concurrency primitives.
"""
from collections.abc import AsyncGenerator
from contextlib import AbstractContextManager
from contextlib import asynccontextmanager as asynccontextmanager

Loading…
Cancel
Save