/// Wait until the task computes its result. Otherwise, returns a timeout.
Wait until the task computes its result. Otherwise, returns a timeout.
Wait until the task computes its result . Otherwise returns a timeout .
pub fn wait_for_result<D: DurationTicks>(&mut self, max_wait: D) -> Result<(), FreeRtosError> {
        if self.finished == true {
            Ok(())
        } else {
            match self.status.receive(max_wait) {
                Ok(ComputeTaskStatus::Finished) => {
                    self.finished = true;
                    Ok(())
                }
                Err(e) => Err(e),
            }
        }
    }
pub fn wait_for_result < D : DurationTicks > ( & mut self , max_wait : D ) -> Result < ( ) , FreeRtosError > { if self . finished == true { Ok ( ( ) ) } else { match self . status . receive ( max_wait ) { Ok ( ComputeTaskStatus :: Finished ) => { self . finished = true ; Ok ( ( ) ) } Err ( e ) => Err ( e ) , } } }
Wait until the task computes its result.
Wait until the task computes its result .
&mut self
max_wait
D