tokio-rev-lines

Crate MIT licensed

This library provides an async stream for reading files or any BufReader line by line with buffering in reverse.

It's an async tokio version of rev_lines.

Documentation

Documentation is available on Docs.rs.

Example

```rust use futuresutil::{pinmut, StreamExt}; use tokio::{fs::File, io::BufReader}; use tokiorevlines::RevLines;

[tokio::main]

async fn main() -> Result<(), Box> { let file = File::open("tests/multilinefile").await?; let revlines = RevLines::new(BufReader::new(file)).await?; pinmut!(rev_lines);

while let Some(line) = rev_lines.next().await {
    println!("{}", line?);
}

Ok(())

} ```