Skip to main content

lock_config

Function lock_config 

Source
fn lock_config() -> Result<File, Error>
Expand description

Acquire the exclusive advisory lock guarding the global config file.

Held for the whole read-modify-write cycle so two grove processes can’t each load the registry, add a different project, and clobber one another. The lock is released when the returned handle is dropped.