📝 Clarify guidance on using async def without await (#13642)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Swastik Pradhan
2025-06-17 15:47:08 +05:30
committed by GitHub
parent 10bf65f272
commit 6d78b228d8

View 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.
---