Helper coroutine to decrement the usage counter while holding the lock. Returns the new value of the usage counter.
(self)
| 710 | return self._usage_counter |
| 711 | |
| 712 | async def _decrement_usage(self) -> int: |
| 713 | """ |
| 714 | Helper coroutine to decrement the usage counter while holding the lock. |
| 715 | Returns the new value of the usage counter. |
| 716 | """ |
| 717 | async with self._usage_lock: |
| 718 | self._usage_counter -= 1 |
| 719 | return self._usage_counter |
| 720 | |
| 721 | async def __aexit__(self, exc_type, exc_value, traceback): |
| 722 | """ |
no outgoing calls
no test coverage detected