Skip to main content

lock

Function lock 

Source
pub async fn lock(state: &Path, id: &str) -> Result<File, String>
Expand description

Hold <sessionId>.lock until the returned file drops: sends to one session take turns.