
    5h                     Z    S SK JrJr  S SKJr  S SKJrJrJ	r	  \	" S5      r
 " S S\5      rg)    )AnyCallable)BackgroundTasks)	AnnotatedDoc	ParamSpecPc                      ^  \ rS rSrSrS\\\\4   \	" S5      4   S\R                  S\R                  SS4U 4S	 jjrS
rU =r$ )r   	   a  
A collection of background tasks that will be called after a response has been
sent to the client.

Read more about it in the
[FastAPI docs for Background Tasks](https://fastapi.tiangolo.com/tutorial/background-tasks/).

## Example

```python
from fastapi import BackgroundTasks, FastAPI

app = FastAPI()


def write_notification(email: str, message=""):
    with open("log.txt", mode="w") as email_file:
        content = f"notification for {email}: {message}"
        email_file.write(content)


@app.post("/send-notification/{email}")
async def send_notification(email: str, background_tasks: BackgroundTasks):
    background_tasks.add_task(write_notification, email, message="some notification")
    return {"message": "Notification sent in the background"}
```
funcz
                The function to call after the response is sent.

                It can be a regular `def` function or an `async def` function.
                argskwargsreturnNc                 ,   > [         TU ]  " U/UQ70 UD6$ )z
Add a function to be called in the background after the response is sent.

Read more about it in the
[FastAPI docs for Background Tasks](https://fastapi.tiangolo.com/tutorial/background-tasks/).
)superadd_task)selfr   r   r   	__class__s       ]/var/www/html/cementerio_25MayoBackend/env/lib/python3.13/site-packages/fastapi/background.pyr   BackgroundTasks.add_task&   s    * w6t6v66     )__name__
__module____qualname____firstlineno____doc__r   r   r	   r   r   r   r   r   __static_attributes____classcell__)r   s   @r   r   r   	   sc    87QV	
7 vv7 ((7 
7 7r   r   N)typingr   r   starlette.backgroundr   StarletteBackgroundTaskstyping_extensionsr   r   r   r	   r   r   r   <module>r$      s'      L 7 7cN27. 27r   