Function sink
pub fn sink() -> SinkExpand description
Creates a writer that consumes and drops all data.
ยงExamples
use futures_lite::io::{self, AsyncWriteExt};
let mut writer = io::sink();
writer.write_all(b"hello").await?;pub fn sink() -> SinkCreates a writer that consumes and drops all data.
use futures_lite::io::{self, AsyncWriteExt};
let mut writer = io::sink();
writer.write_all(b"hello").await?;