Source code for cadrumo.application.user_profile.profile_pointer_ports
"""Application-owned ports for active-profile pointer coordination."""from__future__importannotationsfromcontextlibimportAbstractContextManagerfrompathlibimportPathfromtypingimportProtocol
[docs]classProfileCustodyRootLockPort(Protocol):"""Acquire the shared profile-custody root lock for one operation."""def__call__(self,root:Path,*,timeout_seconds:float)->AbstractContextManager[None]:"""Return a context manager holding the canonical root lock."""...