MCPcopy Create free account
hub / github.com/tox-dev/filelock / _commit_release_if_released

Method _commit_release_if_released

src/filelock/asyncio.py:501–505  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

499 _LOGGER.debug("Lock %s released on %s", lock_id, lock_filename)
500
501 def _commit_release_if_released(self) -> None:
502 # Commit only when the backend actually unlocked (close or unlink failed after the OS unlock). If the lock is
503 # still held, keep the counter so a later release can retry.
504 if not self.is_locked:
505 self._commit_release()
506
507 def _start_internal_method(
508 self, method: Callable[[], None] | Callable[[], Coroutine[None, None, None]]

Callers 1

_release_serializedMethod · 0.95

Calls 1

_commit_releaseMethod · 0.80

Tested by

no test coverage detected