fn poll_aio(aiocb: &mut AioCb) -> Result<()> {
    loop {
        let err = aiocb.error();
        if err != Err(Error::from(Errno::EINPROGRESS)) { return err; };
        thread::sleep(time::Duration::from_millis(10));
    }
}
// Helper that polls an AioCb for completion or error
Helper that polls an AioCb for completion or error
Helper that polls an AioCb for completion or error
fn poll_aio(aiocb: &mut AioCb) -> Result<()> {
    loop {
        let err = aiocb.error();
        if err != Err(Error::from(Errno::EINPROGRESS)) { return err; };
        thread::sleep(time::Duration::from_millis(10));
    }
}
fn poll_aio ( aiocb : & mut AioCb ) -> Result < ( ) > { loop { let err = aiocb . error ( ) ; if err != Err ( Error :: from ( Errno :: EINPROGRESS ) ) { return err ; } ; thread :: sleep ( time :: Duration :: from_millis ( 10 ) ) ; } }
Helper that polls an AioCb for completion or error
Helper that polls an AioCb for completion or error
aiocb
&mut AioCb
aiocb
&mut AioCb