Skip to main content

Module mutation

Module mutation 

Source
Expand description

Serializes writes to the same file across concurrently running tool calls.

Functions§

file_lock
pi’s withFileMutationQueue for work outside the host: waits until every earlier mutation of the same file (by real path) has finished, and holds the file until the guard drops.
with_file_lock
Runs work once every earlier mutation of the same file (by real path) has finished.