heim_runtime::fs

Function read_first_line

Source
pub fn read_first_line<T>(path: T) -> impl Future<Output = Result<String>>
where T: AsRef<Path> + Send + Unpin + 'static,
Expand description

Returns future which tries to read the first line from file.