Function tokio::io::util::shutdown::shutdown

source ·
pub(super) fn shutdown<A>(a: &mut A) -> Shutdown<'_, A> 
where A: AsyncWrite + Unpin + ?Sized,
Expand description

Creates a future which will shutdown an I/O object.