Glossary: Building APIs with FastAPI
Background task
Also written: background tasks
A function FastAPI runs after the response has been sent, such as emailing a confirmation without making the client wait. It runs inside the server process, so it is lost if the server stops.