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.