Function tokio_io::io::shutdown  
                   
                       [−]
                   
               [src]
pub fn shutdown<A>(a: A) -> Shutdown<A> where A: AsyncWriteCreates a future which will entirely shutdown an I/O object and then yield the object itself.
This function will consume the object provided if an error happens, and
otherwise it will repeatedly call shutdown until it sees Ok(()),
scheduling a retry if WouldBlock is seen along the way.