futures::sink
pub fn drain<T>() -> Drain<T>
Create a sink that will just discard all items given to it.
Similar to io::Sink.
io::Sink
use futures::sink::{self, SinkExt}; let mut drain = sink::drain(); drain.send(5).await?;