Skip to main content

lease_tmp_path

Function lease_tmp_path 

Source
fn lease_tmp_path(lease_path: &Path, owner: &str) -> PathBuf
Expand description

A temp path beside lease_path that is unique to this call: no two concurrent callers (same process or different) land on the same name, so each writes its own temp file undisturbed before attempting to publish it.