1 2 3 4 5 6 7 8 9
use async_ioutil::read::*; use std::io::Result; #[async_std::test] async fn test_read_all() -> Result<()> { let mut f = async_std::fs::File::open("Cargo.toml").await?; read_all(&mut f).await?; Ok(()) }