]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Clarify guidance on using `async def` without `await` (#13642)
authorSwastik Pradhan <66001704+swastikpradhan1999@users.noreply.github.com>
Tue, 17 Jun 2025 10:17:08 +0000 (15:47 +0530)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 10:17:08 +0000 (10:17 +0000)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/async.md

index 63bd8ca68538046eb546ce7b01a86d7ebcc7cbc9..8207ec4807bb38dec9f9976bc305b479016962bc 100644 (file)
@@ -40,7 +40,7 @@ def results():
 
 ---
 
-If your application (somehow) doesn't have to communicate with anything else and wait for it to respond, use `async def`.
+If your application (somehow) doesn't have to communicate with anything else and wait for it to respond, use `async def`, even if you don't need to use `await` inside.
 
 ---