From 2d1390fe799c45ffe1469e661e892ca2b6aedaad Mon Sep 17 00:00:00 2001 From: SUPREME Date: Sun, 31 May 2026 12:51:34 +0530 Subject: [PATCH] docs: add module-level docstring to concurrency module Documents the concurrency utilities including contextmanager_in_threadpool and the re-exported Starlette concurrency primitives. --- fastapi/concurrency.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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