docs: add cross-reference for async usage explanation

This commit is contained in:
Malak khoder 2025-12-15 13:18:05 +02:00
parent fcb87729c9
commit 6332a6e561
1 changed files with 1 additions and 2 deletions

View File

@ -178,8 +178,7 @@ def read_item(item_id: int, q: Union[str, None] = None):
<summary>Or use <code>async def</code>...</summary>
!!! tip
Use `async def` only when your code performs non-blocking I/O,
such as database queries or external API calls.
To learn more about when to use `async def`, check the Async and await documentation.