pub fn sink() -> Sink
Creates a writer that consumes and drops all data.
use async_std::io; use async_std::prelude::*; let mut writer = io::sink(); writer.write(b"hello world").await?;