(self)
| 931 | return True, "" |
| 932 | |
| 933 | async def _cleanup(self): |
| 934 | if not self._cleanedup: |
| 935 | self._cleanedup = True |
| 936 | for callback in [self.cleanup] + self.cleanup_callbacks: |
| 937 | context = f"{self.name}.cleanup()" |
| 938 | if callable(callback): |
| 939 | async with self.scan._acatch(context), self._task_counter.count(context): |
| 940 | await self.helpers.execute_sync_or_async(callback) |
| 941 | |
| 942 | async def run_task(self, coro, name, n=1): |
| 943 | """ |