package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 9, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Lock attempts to acquire a lock with the given key and a time to live.
flag is a unique identifier for the locking process.
It returns true if the lock is acquired, false otherwise.
UnLock releases a shared lock
If flag is not empty, it first checks if it's the lock owner before releasing it,
preventing the lock from being released by an unauthorized process.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.