async def stop_when_done(self):
        """This is a helper function that sends an EndFrame to the pipeline in
        order to stop the task after everything in it has been processed.

        """
        pass
This is a helper function that sends an EndFrame to the pipeline in
        order to stop the task after everything in it has been processed.

        
src/pipecat/pipeline/base_task.py