pub async fn next(&mut self) -> Result<IfEvent> {
        loop {
            if let Some(event) = self.queue.pop_front() {
                return Ok(event);
            }
            self.ticker.next().await;
            self.resync()?;
        }
    }
/// Returns a future for the next event.
Returns a future for the next event.
Returns a future for the next event .
pub async fn next(&mut self) -> Result<IfEvent> {
        loop {
            if let Some(event) = self.queue.pop_front() {
                return Ok(event);
            }
            self.ticker.next().await;
            self.resync()?;
        }
    }
pub async fn next ( & mut self ) -> Result < IfEvent > { loop { if let Some ( event ) = self . queue . pop_front ( ) { return Ok ( event ) ; } self . ticker . next ( ) . await ; self . resync ( ) ? ; } }
Returns a future for the next event.
Returns a future for the next event .
&mut self
&mut self