From: Swastik Pradhan <66001704+swastikpradhan1999@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:17:08 +0000 (+0530) Subject: 📝 Clarify guidance on using `async def` without `await` (#13642) X-Git-Tag: 0.115.13~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d78b228d8ffa7fe977bb2ccc25f0743af361f51;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Clarify guidance on using `async def` without `await` (#13642) Co-authored-by: Sebastián Ramírez --- diff --git a/docs/en/docs/async.md b/docs/en/docs/async.md index 63bd8ca685..8207ec4807 100644 --- a/docs/en/docs/async.md +++ b/docs/en/docs/async.md @@ -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. ---