MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / release

Method release

rust/src/lock.rs:64–70  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

62 }
63
64 pub fn release(&mut self) {
65 if let Some(file) = self.file.take() {
66 FileExt::unlock(&file).unwrap_or_default();
67 fs::remove_file(&self.path).unwrap_or_default();
68 }
69 set_lock_path(None);
70 }
71
72 pub fn exists(&mut self) -> bool {
73 self.path.exists()

Callers 4

dropMethod · 0.45
download_driverMethod · 0.45
download_browserMethod · 0.45

Calls 2

remove_fileFunction · 0.85
set_lock_pathFunction · 0.85