Function futures::sink::drain[][src]

pub fn drain<T>() -> Drain<T>

Create a sink that will just discard all items given to it.

Similar to io::Sink.

Examples

#![feature(async_await, await_macro, futures_api)]
use futures::sink::{self, SinkExt};

let mut drain = sink::drain();
await!(drain.send(5))?;