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

Function send_notification

docs_src/background_tasks/tutorial002_py310.py:19–24  ·  view source on GitHub ↗
(
    email: str, background_tasks: BackgroundTasks, q: str = Depends(get_query)
)

Source from the content-addressed store, hash-verified

17
18@app.post("/send-notification/{email}")
19async def send_notification(
20 email: str, background_tasks: BackgroundTasks, q: str = Depends(get_query)
21):
22 message = f"message to {email}\n"
23 background_tasks.add_task(write_log, message)
24 return {"message": "Message sent"}

Callers

nothing calls this directly

Calls 2

DependsClass · 0.90
add_taskMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…