Skip to main content

tmp_slot

Function tmp_slot 

Source
pub fn tmp_slot(scope: &Path, kind: &str) -> Result<TmpSlot>
Expand description

Take the first free slot of kind for scope (the checkout commands run in, or the root workers build under): the same few directories are handed out again and again, never two holders at once — across processes too, since a slot is held by a file lock.