Skip to main content

hold

Function hold 

Source
pub fn hold(target: &Utf8Path) -> Result<Lock, AppError>
Expand description

Hold one target exclusively for the whole of a landing.

ยงErrors

AppError::Busy when another process holds it, and I/O errors creating the lock file.