pub async fn next(&mut self) {
        match &mut self.0 {
            #[cfg(feature = "tokio_executor")]
            IntervalInner::Tokio(interval) => {
                interval.tick().await;
            },
            #[cfg(feature = "async_std_executor")]
            IntervalInner::AsyncStd(interval) => {
                use futures_lite::StreamExt;
                interval.next().await;
            },
            #[cfg(feature = "smol_executor")]
            IntervalInner::Smol(timer, duration, at) => {
                use std::ops::Add;
                timer.get_mut().await;
                *at = at.add(*duration);
                timer.set(async_io::Timer::at(*at));
            },
            #[cfg(feature = "futures_executor")]
            IntervalInner::AsyncTimer(interval) => {
                interval.wait().await;
            },
            #[cfg(feature = "wasm_bindgen_executor")]
            IntervalInner::WasmBindgen(wasm_interval) => {
                wasm_interval.next().await;
            }
        }
    }
/// Returns the future for the next interval in the sequence.
Returns the future for the next interval in the sequence.
Returns the future for the next interval in the sequence .
pub async fn next(&mut self) {
        match &mut self.0 {
            #[cfg(feature = "tokio_executor")]
            IntervalInner::Tokio(interval) => {
                interval.tick().await;
            },
            #[cfg(feature = "async_std_executor")]
            IntervalInner::AsyncStd(interval) => {
                use futures_lite::StreamExt;
                interval.next().await;
            },
            #[cfg(feature = "smol_executor")]
            IntervalInner::Smol(timer, duration, at) => {
                use std::ops::Add;
                timer.get_mut().await;
                *at = at.add(*duration);
                timer.set(async_io::Timer::at(*at));
            },
            #[cfg(feature = "futures_executor")]
            IntervalInner::AsyncTimer(interval) => {
                interval.wait().await;
            },
            #[cfg(feature = "wasm_bindgen_executor")]
            IntervalInner::WasmBindgen(wasm_interval) => {
                wasm_interval.next().await;
            }
        }
    }
pub async fn next ( & mut self ) { match & mut self . 0 { # [ cfg ( feature " " ) ] IntervalInner :: Tokio ( interval ) => { interval . tick ( ) . await ; } , # [ cfg ( feature " " ) ] IntervalInner :: AsyncStd ( interval ) => { use futures_lite :: StreamExt ; interval . next ( ) . await ; } , # [ cfg ( feature " " ) ] IntervalInner :: Smol ( timer , duration , at ) => { use std :: ops :: Add ; timer . get_mut ( ) . await ; * at = at . add ( * duration ) ; timer . set ( async_io :: Timer :: at ( * at ) ) ; } , # [ cfg ( feature " " ) ] IntervalInner :: AsyncTimer ( interval ) => { interval . wait ( ) . await ; } , # [ cfg ( feature " " ) ] IntervalInner :: WasmBindgen ( wasm_interval ) => { wasm_interval . next ( ) . await ; } } }
Returns the future for the next interval in the sequence.
Returns the future for the next interval in the sequence .
&mut self