klyn.io.FileLock.FileLock
constructor
public FileLock(path as Path)
Description

Acquires the lock, creating its file if necessary.

Parameters
ParameterDescription
pathDedicated lock file whose parent already exists.
Throws
  • IOException if the file cannot be opened or locked. Example: guard = FileLock(Path("settings.lock")).