I didn't explain it well in my comment. Consider the following example:
def blocking(): time.sleep(5)
@app.get("/") async def index(): blocking()
The `blocking` function will blocking the event loop. This is something you need to be aware of. Gist with a few scenarios: https://gist.github.com/lukin0110/0074ec5325224674010193bb95...