monitor_file

Function monitor_file 

Source
pub fn monitor_file(
    path: String,
    period: f32,
) -> Monitor<impl FnMut() -> String> 
Expand description

Monitor a file at a given path. When iterated it’s contents are periodically read. NB the file should already have been verified to exist at this point, so we should safe to expect that it still does.