首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏编码视界

    FastAPI后台开发基础(19): 异步任务BackgroundTask

    app.post('/background_task')async def background_task(background_tasks: BackgroundTasks): """ 测试接口 background-task - begin_time}s')def get_q(background_tasks: BackgroundTasks, q: str | None = None): """ 测试接口 background-task '/background_task_2')async def background_task_2(q: Annotated[str, Depends(get_q)]): """ 测试接口 background-task

    78143编辑于 2024-11-20
领券