l.s.d.locking : module documentation

Part of lp.services.database

No module docstring
Class AdvisoryLockHeld An attempt to acquire an advisory lock failed; it is already held.
Class LockType Undocumented
Function try_advisory_lock Try to acquire an advisory lock.
@contextmanager
def try_advisory_lock(lock_type, lock_id, store):
Try to acquire an advisory lock.

If the lock is currently held, AdvisoryLockHeld will be raised.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.