tokio::io::util::flush

Function flush

Source
pub(super) fn flush<A>(a: &mut A) -> Flush<'_, A> 
where A: AsyncWrite + Unpin + ?Sized,
Expand description

Creates a future which will entirely flush an I/O object.