From 162fc49082350d32a9d8983f20eb89939dfbc4d2 Mon Sep 17 00:00:00 2001 From: Swastik Pradhan Date: Wed, 23 Apr 2025 22:57:38 +0530 Subject: [PATCH] Clarify usage of async def when no await is needed --- docs/en/docs/async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/docs/async.md b/docs/en/docs/async.md index 63bd8ca68..cabc1bc35 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 doesn't need to communicate with anything else or await a response, it's still safe to use `async def` -- even if there's nothing to `await`. ---