]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Add support for `lifespan` async context managers (superseding `startup` and `shutd...
authorJordan Speicher <uSpike@users.noreply.github.com>
Tue, 7 Mar 2023 15:46:00 +0000 (09:46 -0600)
committerGitHub <noreply@github.com>
Tue, 7 Mar 2023 15:46:00 +0000 (16:46 +0100)
commitcc9a73c3f83fab4f1d9fcb19dfe5b562869d932c
tree5d0aa234d6c4303f5a4c67a3e9656cbdf3dbe95b
parent66e03c816b8185d6ee8fc6d10fbb410bcb385105
✨ Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events) (#2944)

Co-authored-by: Mike Shantz <mshantz@coldstorage.com>
Co-authored-by: Jonathan Plasse <13716151+JonathanPlasse@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/advanced/events.md
docs_src/events/tutorial003.py [new file with mode: 0644]
fastapi/applications.py
fastapi/routing.py
tests/test_router_events.py
tests/test_tutorial/test_events/test_tutorial003.py [new file with mode: 0644]