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

Method release

fastapi_app/interprocess_lock.py:58–62  ·  view source on GitHub ↗
(held: _HeldLockSlot)

Source from the content-addressed store, hash-verified

56
57 @staticmethod
58 def release(held: _HeldLockSlot) -> None:
59 try:
60 fcntl.flock(held.fd, fcntl.LOCK_UN)
61 finally:
62 os.close(held.fd)
63
64 @asynccontextmanager
65 async def hold(self) -> AsyncIterator[None]:

Callers 2

holdMethod · 0.95
inferFunction · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected