mirror of https://github.com/tiangolo/fastapi.git
📝 Clarify guidance on using `async def` without `await` (#13642)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
10bf65f272
commit
6d78b228d8
|
|
@ -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 (somehow) doesn't have to communicate with anything else and wait for it to respond, use `async def`, even if you don't need to use `await` inside.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue