# Functions
IsLockingError checks whether an error object is os-specific error which represents failure to acquire lock specified.
Lock places an advisory write lock on the file, blocking until it can be locked or timing out.
RLock places an advisory read lock on the file, blocking until it can be locked or timing out.
TryLock places an advisory write lock on the file, but returns immediately when it can not be locked.
TryRLock places an advisory read lock on the file, but returns immediately when it can not be locked.
Unlock removes an advisory lock placed on f by this process.
# Interfaces
A File provides the minimal set of methods required to lock an open file.