Stop the recurring task execution.
(self)
| 66 | ) |
| 67 | |
| 68 | async def stop(self) -> None: |
| 69 | """Stop the recurring task execution.""" |
| 70 | if self.task: |
| 71 | self.task.cancel() |
| 72 | # Ensure the task has a chance to properly handle the cancellation and any potential exceptions. |
| 73 | await asyncio.gather(self.task, return_exceptions=True) |
no outgoing calls