package lsp

  1. Overview
  2. Docs

doc/lsp.stdune/Stdune/Lock_file/index.html

Module Stdune.Lock_fileSource

A mutually exclusive lock file.

Sourcetype t
Sourceval create : Path.t -> t

create path creates a mutually exclusive lock file. The lock is held until the lock is released or this process ends.

Sourceval try_create : Path.t -> t option

Same as create path expect that try_create path returns None if the file is already locked by another process.

Sourceval unlock : t -> unit

unlock t releases lock file t.

OCaml

Innovation. Community. Security.