Stop background cleanup task
(self)
| 188 | return True |
| 189 | |
| 190 | async def stop_cleanup_task(self): |
| 191 | """Stop background cleanup task""" |
| 192 | if self._cleanup_task: |
| 193 | self._cleanup_task.cancel() |
| 194 | try: |
| 195 | await self._cleanup_task |
| 196 | except asyncio.CancelledError: |
| 197 | pass |
| 198 | self._cleanup_task = None |
| 199 | |
| 200 | async def refresh_cleanup_task(self) -> bool: |
| 201 | """Apply the latest timeout setting to the cleanup background task.""" |
no test coverage detected