mirror of https://github.com/tiangolo/fastapi.git
🔖 Release version 0.42.0: Answer to the Ultimate Question of Life, the Universe, and Everything
This commit is contained in:
parent
0192eab557
commit
65536cbf63
|
|
@ -1,5 +1,7 @@
|
|||
## Latest changes
|
||||
|
||||
## 0.42.0
|
||||
|
||||
* Add dependencies with `yield`, a.k.a. exit steps, context managers, cleanup, teardown, ...
|
||||
* This allows adding extra code after a dependency is done. It can be used, for example, to close database connections.
|
||||
* Dependencies with `yield` can be normal or `async`, **FastAPI** will run normal dependencies in a threadpool.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"""FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
|
||||
|
||||
__version__ = "0.41.0"
|
||||
__version__ = "0.42.0"
|
||||
|
||||
from starlette.background import BackgroundTasks
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue