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

Method _acquire

src/filelock/_sqlite/_async.py:120–125  ·  view source on GitHub ↗
(self, mode: Literal["read", "write"], timeout: float | None, *, blocking: bool | None)

Source from the content-addressed store, hash-verified

118 return self._fork_invalidated or super()._inherited
119
120 async def _acquire(self, mode: Literal["read", "write"], timeout: float | None, *, blocking: bool | None) -> None:
121 await self._admit(
122 mode,
123 self.timeout if timeout is None else timeout,
124 blocking=self.blocking if blocking is None else blocking,
125 )
126
127 async def _release_in_context(self, body_error: BaseException | None) -> None:
128 try:

Callers 2

acquire_readMethod · 0.95
acquire_writeMethod · 0.95

Calls 1

_admitMethod · 0.45

Tested by

no test coverage detected