Attempt to lock. Returns an awaitable. Returns an awaitable, which raises `tornado.util.TimeoutError` after a timeout.
(
self, timeout: Optional[Union[float, datetime.timedelta]] = None
)
| 526 | return f"<{self.__class__.__name__} _block={self._block}>" |
| 527 | |
| 528 | def acquire( |
| 529 | self, timeout: Optional[Union[float, datetime.timedelta]] = None |
| 530 | ) -> Awaitable[_ReleasingContextManager]: |
| 531 | """Attempt to lock. Returns an awaitable. |
| 532 | |
| 533 | Returns an awaitable, which raises `tornado.util.TimeoutError` after a |
| 534 | timeout. |
| 535 | """ |
| 536 | return self._block.acquire(timeout) |
| 537 | |
| 538 | def release(self) -> None: |
| 539 | """Unlock. |
no outgoing calls