mirror of https://github.com/tiangolo/fastapi.git
Update background.md
This commit is contained in:
parent
7d31bea4f4
commit
edc5d0839c
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
您可以在 *路径操作函数* 或依赖函数中声明一个类型为`BackgroundTasks`的参数,然后在发送响应后使用它来安排后台任务的执行。
|
||||
|
||||
您可以直接从 `fastapi` 中导入该参数:
|
||||
您可以直接从 `fastapi` 中导入:
|
||||
|
||||
```python
|
||||
from fastapi import BackgroundTasks
|
||||
|
|
|
|||
Loading…
Reference in New Issue