Browse Source

docs: add cross-reference for async usage explanation

pull/14527/head
Malak khoder 7 months ago
parent
commit
6332a6e561
  1. 3
      docs/en/docs/index.md

3
docs/en/docs/index.md

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

Loading…
Cancel
Save