Function futures_lite::io::sink[][src]

pub fn sink() -> Sink

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?;