FileLock

class FileLock(name: String, folder: String = "tmp")(source)

A file lock that uses the local filesystem.

Constructors

Link copied to clipboard
constructor(name: String, folder: String = "tmp")

Functions

Link copied to clipboard
fun <T> doWithLock(f: Supplier<T>): T

Executes the given Supplier while holding the lock.