FileBase.tryLock

Like lock, but returns false immediately if the lock is held by another process. Returns true if the specified region in the file was successfully locked.

struct FileBase
bool
tryLock
(,
long start = 0
,
long length = long.max
)

Meta