MCPcopy Index your code
hub / github.com/fastapi/fastapi / add_background_task

Function add_background_task

tests/test_response_dependency.py:157–159  ·  view source on GitHub ↗
(background_tasks: BackgroundTasks)

Source from the content-addressed store, hash-verified

155 task_results.append(message)
156
157 def add_background_task(background_tasks: BackgroundTasks) -> BackgroundTasks:
158 background_tasks.add_task(background_task, "from dependency")
159 return background_tasks
160
161 @app.get("/")
162 def endpoint(

Callers

nothing calls this directly

Calls 1

add_taskMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…