Skip to main content

wait_for_file

Function wait_for_file 

Source
pub fn wait_for_file<P: AsRef<Path> + Copy, T>(
    path: P,
    pending_wait: Duration,
    op: fn(P) -> Result<T>,
) -> Result<T, String>
Expand description

Waits for path to exist for a maximum period of time using operation op. Returns the result of op on success.