class

LockFile

@Js
const class LockFile : Obj

LockFile is used to acquire an exclusive lock to prevent two different processes from using same files

constructors make

Construct with given file

methods file

Backing file we use to lock/acquire

unlock

Release the lock if we are holding one

lock

Acquire the lock or raise CannotAcquireLockFileErr

file File file()

Backing file we use to lock/acquire

lock This lock()

Acquire the lock or raise CannotAcquireLockFileErr

make new make(File file)

Construct with given file

unlock This unlock()

Release the lock if we are holding one

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST