pub fn acquire(
config_path: &Path,
attempts: u32,
pause: Duration,
) -> Result<Instance>Expand description
Take the UI lock for the config at config_path, trying attempts
times pause apart. A stale raise request is dropped once the lock is
ours, so it cannot pop the window open later.