/// Submit all pending IO operations.
Submit all pending IO operations.
Submit all pending IO operations .
pub fn flush(&mut self) -> io::Result<()> {
        match self.ctx.submit() {
            Err(e) => return Err(e),
            Ok(_) => (),
        };
        while self.ctx.submitted() > 0 {
            self.results();
        }
        Ok(())
    }
pub fn flush ( & mut self ) -> io :: Result < ( ) > { match self . ctx . submit ( ) { Err ( e ) => return Err ( e ) , Ok ( _ ) => ( ) , } ; while self . ctx . submitted ( ) > 0 { self . results ( ) ; } Ok ( ( ) ) }
Submit all pending IO operations.
Submit all pending IO operations .
&mut self