MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _slot_path

Method _slot_path

fastapi_app/interprocess_lock.py:32–33  ·  view source on GitHub ↗
(self, index: int)

Source from the content-addressed store, hash-verified

30 self._poll_interval = max(0.05, float(poll_interval))
31
32 def _slot_path(self, index: int) -> Path:
33 return LOCK_ROOT / f"{self._name}.{index}.lock"
34
35 def _try_acquire_once(self) -> _HeldLockSlot | None:
36 LOCK_ROOT.mkdir(parents=True, exist_ok=True)

Callers 1

_try_acquire_onceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected