Creates a cross-process lock for the given file, for the actual process.
Note, that it will be only a soft-lock, the file will be locked for other instances of cross-process-lock, or processes using the same API for locking.
The path of the file to lock.
The lock options/timeout.
The function to unlock the file.
Generated using TypeDoc
Creates a cross-process lock for the given file, for the actual process.
Note, that it will be only a soft-lock, the file will be locked for other instances of cross-process-lock, or processes using the same API for locking.