diff --git a/fastapi/concurrency.py b/fastapi/concurrency.py index 76a5a2eb12..51d3cbadd0 100644 --- a/fastapi/concurrency.py +++ b/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