Method
__aexit__
(self, exc_type, exc_value, traceback)
Source from the content-addressed store, hash-verified
| 173 | raise LockError("Unable to acquire lock within the time specified") |
| 174 | |
| 175 | async def __aexit__(self, exc_type, exc_value, traceback): |
| 176 | try: |
| 177 | await self.release() |
| 178 | except LockError: |
| 179 | if self.raise_on_release_error: |
| 180 | raise |
| 181 | logger.warning( |
| 182 | "Lock was unlocked or no longer owned when exiting context manager." |
| 183 | ) |
| 184 | |
| 185 | async def acquire( |
| 186 | self, |
Callers
nothing calls this directly
Tested by
no test coverage detected