Acquire the lock. :returns: the lock object
(self)
| 623 | raise NotImplementedError(msg) |
| 624 | |
| 625 | async def __aenter__(self) -> Self: |
| 626 | """ |
| 627 | Acquire the lock. |
| 628 | |
| 629 | :returns: the lock object |
| 630 | |
| 631 | """ |
| 632 | await self.acquire() |
| 633 | return self |
| 634 | |
| 635 | async def __aexit__( |
| 636 | self, |