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

Function send_notification

docs_src/background_tasks/tutorial001_py310.py:13–15  ·  view source on GitHub ↗
(email: str, background_tasks: BackgroundTasks)

Source from the content-addressed store, hash-verified

11
12@app.post("/send-notification/{email}")
13async def send_notification(email: str, background_tasks: BackgroundTasks):
14 background_tasks.add_task(write_notification, email, message="some notification")
15 return {"message": "Notification sent in the background"}

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…