mirror of https://github.com/tiangolo/fastapi.git
docs: add cross-reference for async usage explanation
This commit is contained in:
parent
fcb87729c9
commit
6332a6e561
|
|
@ -178,8 +178,7 @@ def read_item(item_id: int, q: Union[str, None] = None):
|
||||||
<summary>Or use <code>async def</code>...</summary>
|
<summary>Or use <code>async def</code>...</summary>
|
||||||
|
|
||||||
!!! tip
|
!!! tip
|
||||||
Use `async def` only when your code performs non-blocking I/O,
|
To learn more about when to use `async def`, check the Async and await documentation.
|
||||||
such as database queries or external API calls.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue