Glossary: Building APIs with FastAPI
async def
Also written: async, await, asynchronous
A way to write an endpoint that runs on the event loop and can `await` other work without holding up other requests. Never put blocking calls such as `time.sleep` or a database session inside one.