✨ Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events) #2944
Add lifespan context argument
bb2ec92d
Add tests for lifespan context and refactor router event tests
4620732d
Add lifespan docs
8c33c941
Fix lifespan typing
ecd6d27d
Fix lifespan doc highlight
c7364052
Fix event tests repeated code
bc1f5fac
Fix import sorting
12e924d7
Merge branch 'master' of github.com:tiangolo/fastapi into add-lifespa…
c78ba44c
update lifespan to be an async context manager
c3a3d250
Fix formatting
8b1dfd54
Fix type of lifespan to AsyncContextManager[Any]
48fdb769
Fix docs for lifespan asynccontextmanager
92897b3c
yezz123
approved these changes
on 2022-10-16
Add lifespan context argument
6f9ebeac
Add tests for lifespan context and refactor router event tests
edef8c0b
Add lifespan docs
76968ca1
Fix lifespan typing
0dbcb353
Fix lifespan doc highlight
2712fb68
Fix event tests repeated code
d15df2de
Fix import sorting
96656454
update lifespan to be an async context manager
628aa71b
Fix formatting
f612d74e
Fix type of lifespan to AsyncContextManager[Any]
f13274c5
Fix docs for lifespan asynccontextmanager
0eed6545
Use @asynccontextmanager for lifespan for test
81591ba9
Use FastAPI instead of Starlette for lifespan
d60f9b87
Replace lifespan AsyncIterator by AsyncGenerator
2c054638
🔀 Merge master
5ae65471
Merge branch 'master' into add-lifespan-context-v3
0ef7cfac
🔀 Merge PR #5503 from @JonathanPlasse with updated types
8b6dd1aa
📝 Update docs for Lifespan events
c842bdd3
✅ Add tests for new lifespan event docs
6adb5543
tiangolo
changed the title Add lifespan context option ✨ Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events) 1 year ago
tiangolo
merged
cc9a73c3
into master 1 year ago
uSpike
deleted the add-lifespan-context branch 1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub