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>
|
||||
|
||||
!!! 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…
Reference in New Issue