Skip to main content

Module file_mutex

Module file_mutex 

Source
Expand description

Per-file mutation lock (core/tools/file-mutation-queue.ts).

Concurrent write/edit calls to the same file must be serialized; this hands out one async mutex per canonical path.

Functions§

with_file_lock
Run f while holding the per-file lock for path.